File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,9 @@ if(LLVM_CCACHE_BUILD)
289
289
set (LLVM_CCACHE_PARAMS "CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros"
290
290
CACHE STRING "Parameters to pass through to ccache" )
291
291
292
- # Using precompiled headers with ccache builds can result in intermittent CI failures
292
+ # FIXME: This is a workaround for an unknown underlying issue where the header file
293
+ # changes but then the pch does not get rebuilt before its dependencies.
294
+ # See: https://github.com/llvm/llvm-project/issues/142449
293
295
set (LLVM_CCACHE_PCH OFF CACHE BOOL "Use precompiled headers in ccache builds" )
294
296
if (NOT LLVM_CCACHE_PCH )
295
297
set (CMAKE_DISABLE_PRECOMPILE_HEADERS "ON" )
Original file line number Diff line number Diff line change @@ -412,7 +412,9 @@ enabled sub-projects. Nearly all of these variable names begin with
412
412
Defaults to OFF. The size and location of the cache maintained
413
413
by ``ccache `` can be adjusted via the LLVM_CCACHE_MAXSIZE and LLVM_CCACHE_DIR
414
414
options, which are passed to the CCACHE_MAXSIZE and CCACHE_DIR environment
415
- variables, respectively.
415
+ variables, respectively. By default, enabling the ccache build will disable
416
+ using precompiled headers as they have been known to cause intermittent CI
417
+ failures. This can be adjusted via the LLVM_CCACHE_PCH option.
416
418
417
419
**LLVM_CODE_COVERAGE_TARGETS **:STRING
418
420
If set to a semicolon separated list of targets, those targets will be used
You can’t perform that action at this time.
0 commit comments