File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ option(CLANG_DEFAULT_PIE_ON_LINUX "Default to -fPIE and -pie on linux-gnu" ON)
251251set (CLANG_ENABLE_OPAQUE_POINTERS "DEFAULT" CACHE STRING
252252 "Enable opaque pointers by default" )
253253if (CLANG_ENABLE_OPAQUE_POINTERS STREQUAL "DEFAULT" )
254- set (CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL OFF )
254+ set (CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL ON )
255255elseif (CLANG_ENABLE_OPAQUE_POINTERS)
256256 set (CLANG_ENABLE_OPAQUE_POINTERS_INTERNAL ON )
257257else ()
Original file line number Diff line number Diff line change @@ -195,8 +195,10 @@ Transition State
195195================
196196
197197As of April 2022 both LLVM and Clang have complete support for opaque pointers,
198- but typed pointers are still the default. Opaque pointers will be enabled by
199- default in Clang soon.
198+ and opaque pointers are enabled by default in Clang. It is possible to
199+ temporarily restore the old default using the
200+ ``-DCLANG_ENABLE_OPAQUE_POINTERS=OFF `` cmake option. Opaque pointers can be
201+ disabled for a single Clang invocation using ``-Xclang -no-opaque-pointers ``.
200202
201203The MLIR and Polly monorepo projects are not fully compatible with opaque
202204pointers yet.
You can’t perform that action at this time.
0 commit comments