File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,7 @@ BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
2121INSTALL_DIR=" ${BUILD_DIR} /install"
2222rm -rf " ${BUILD_DIR} "
2323
24- ccache --zero-stats
25-
26- if [[ -n " ${CLEAR_CACHE:- } " ]]; then
27- echo " clearing cache"
28- ccache --clear
29- fi
24+ sccache --zero-stats
3025
3126mkdir -p artifacts/reproducers
3227
@@ -36,7 +31,7 @@ export CLANG_CRASH_DIAGNOSTICS_DIR=`realpath artifacts/reproducers`
3631function at-exit {
3732 retcode=$?
3833
39- ccache --print -stats > artifacts/ccache_stats .txt
34+ sccache --show -stats > artifacts/sccache_stats .txt
4035 cp " ${BUILD_DIR} " /.ninja_log artifacts/.ninja_log
4136 cp " ${BUILD_DIR} " /test-results.* .xml artifacts/ || :
4237
@@ -78,7 +73,8 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
7873 -D LLVM_LIT_ARGS=" ${lit_args} " \
7974 -D LLVM_ENABLE_LLD=ON \
8075 -D CMAKE_CXX_FLAGS=-gmlt \
81- -D LLVM_CCACHE_BUILD=ON \
76+ -D CMAKE_C_COMPILER_LAUNCHER=sccache \
77+ -D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
8278 -D LIBCXX_CXX_ABI=libcxxabi \
8379 -D MLIR_ENABLE_BINDINGS_PYTHON=ON \
8480 -D LLDB_ENABLE_PYTHON=ON \
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
2121
2222rm -rf " ${BUILD_DIR} "
2323
24- if [[ -n " ${CLEAR_CACHE:- } " ]]; then
25- echo " clearing sccache"
26- rm -rf " $SCCACHE_DIR "
27- fi
28-
2924sccache --zero-stats
3025function at-exit {
3126 retcode=$?
You can’t perform that action at this time.
0 commit comments