[clang] [flang] [llvm] [mlir] [polly] [CMake][LLVM] Add PCH infrastructure and LLVMSupport PCH (PR #176420)
Maksim Levental via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 17 08:24:04 PST 2026
================
@@ -79,6 +79,48 @@ function(llvm_update_compile_flags name)
target_compile_definitions(${name} PRIVATE ${LLVM_COMPILE_DEFINITIONS})
endfunction()
+function(llvm_update_pch name)
+ if(LLVM_REQUIRES_RTTI OR LLVM_REQUIRES_EH)
+ # Non-default RTTI/EH results in incompatible flags, precluding PCH reuse.
+ set(ARG_DISABLE_PCH_REUSE ON)
+ endif()
----------------
makslevental wrote:
Just curious: why are RTTI and Exceptions incompatible with PCH? The format doesn't support typeinfo or something like that?
https://github.com/llvm/llvm-project/pull/176420
More information about the cfe-commits
mailing list