Skip to content

Commit 7d7d282

Browse files
committed
[CMake] Keep ccache-related CACHE variables
1 parent 8e259f4 commit 7d7d282

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ if(LLVM_CCACHE_BUILD)
281281
# ccache only supports passing options on the command line from version 4.8.0
282282
# use a workaround with ad-hoc environment variables for older versions
283283
if (CCACHE_VERSION VERSION_LESS "4.8.0")
284-
set(LLVM_CCACHE_PARAMS CCACHE_CPP2=yes CCACHE_HASHDIR=yes)
284+
set(LLVM_CCACHE_PARAMS "CCACHE_CPP2=yes;CCACHE_HASHDIR=yes"
285+
CACHE STRING "Parameters to pass through to ccache")
285286

286287
set(launcher_params ${LLVM_CCACHE_PARAMS})
287288
if (LLVM_CCACHE_MAXSIZE)
@@ -292,7 +293,8 @@ if(LLVM_CCACHE_BUILD)
292293
endif()
293294
set(launcher ${launcher_params} "${CCACHE_PROGRAM}")
294295
else()
295-
set(LLVM_CCACHE_PARAMS run_second_cpp=true hash_dir=true)
296+
set(LLVM_CCACHE_PARAMS "run_second_cpp=true;hash_dir=true"
297+
CACHE STRING "Parameters to pass through to ccache")
296298

297299
set(launcher_params ${LLVM_CCACHE_PARAMS})
298300
if (LLVM_CCACHE_MAXSIZE)

0 commit comments

Comments
 (0)