[flang] [llvm] [CMake] Fix using precompiled headers with ccache (PR #131397)

Kajetan Puchalski via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 18 08:10:10 PDT 2025


================
@@ -291,7 +291,7 @@ if(LLVM_CCACHE_BUILD)
       set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_PROGRAM})
     else()
       if(LLVM_CCACHE_MAXSIZE OR LLVM_CCACHE_DIR OR
-         NOT LLVM_CCACHE_PARAMS MATCHES "CCACHE_CPP2=yes CCACHE_HASHDIR=yes")
+         NOT LLVM_CCACHE_PARAMS MATCHES "CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros")
----------------
mrkajetanp wrote:

See the new commit for a working solution.

https://github.com/llvm/llvm-project/pull/131397


More information about the llvm-commits mailing list