Skip to content

Commit 10d6cb4

Browse files
[CI] Migrate monolithic-linux script to sccache
This is in preparation for migrating to Google Cloud Storage (GCS) based caching soon which is only supported by sccache. Pull Request: llvm#149195
1 parent 95639b7 commit 10d6cb4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.ci/monolithic-linux.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
2121
INSTALL_DIR="${BUILD_DIR}/install"
2222
rm -rf "${BUILD_DIR}"
2323

24-
ccache --zero-stats
24+
sccache --zero-stats
2525

2626
mkdir -p artifacts/reproducers
2727

@@ -31,7 +31,7 @@ export CLANG_CRASH_DIAGNOSTICS_DIR=`realpath artifacts/reproducers`
3131
function at-exit {
3232
retcode=$?
3333

34-
ccache --print-stats > artifacts/ccache_stats.txt
34+
sccache --show-stats > artifacts/sccache_stats.txt
3535
cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log
3636
cp "${BUILD_DIR}"/test-results.*.xml artifacts/ || :
3737

@@ -73,7 +73,8 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
7373
-D LLVM_LIT_ARGS="${lit_args}" \
7474
-D LLVM_ENABLE_LLD=ON \
7575
-D CMAKE_CXX_FLAGS=-gmlt \
76-
-D LLVM_CCACHE_BUILD=ON \
76+
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
77+
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
7778
-D LIBCXX_CXX_ABI=libcxxabi \
7879
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
7980
-D LLDB_ENABLE_PYTHON=ON \

0 commit comments

Comments
 (0)