[llvm-branch-commits] [llvm] [CI] Migrate monolithic-linux script to sccache (PR #149195)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 17 08:25:32 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
This is in preparation for migrating to Google Cloud Storage (GCS) based
caching soon which is only supported by sccache.
---
Full diff: https://github.com/llvm/llvm-project/pull/149195.diff
2 Files Affected:
- (modified) .ci/monolithic-linux.sh (+4-3)
- (modified) .github/workflows/premerge.yaml (+1)
``````````diff
diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh
index 303b430c28e3f..d9f51ba9fd946 100755
--- a/.ci/monolithic-linux.sh
+++ b/.ci/monolithic-linux.sh
@@ -21,7 +21,7 @@ BUILD_DIR="${BUILD_DIR:=${MONOREPO_ROOT}/build}"
INSTALL_DIR="${BUILD_DIR}/install"
rm -rf "${BUILD_DIR}"
-ccache --zero-stats
+sccache --zero-stats
mkdir -p artifacts/reproducers
@@ -31,7 +31,7 @@ export CLANG_CRASH_DIAGNOSTICS_DIR=`realpath artifacts/reproducers`
function at-exit {
retcode=$?
- ccache --print-stats > artifacts/ccache_stats.txt
+ sccache --show-stats > artifacts/sccache_stats.txt
cp "${BUILD_DIR}"/.ninja_log artifacts/.ninja_log
cp "${BUILD_DIR}"/test-results.*.xml artifacts/ || :
@@ -73,7 +73,8 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D LLVM_LIT_ARGS="${lit_args}" \
-D LLVM_ENABLE_LLD=ON \
-D CMAKE_CXX_FLAGS=-gmlt \
- -D LLVM_CCACHE_BUILD=ON \
+ -D CMAKE_C_COMPILER_LAUNCHER=sccache \
+ -D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
-D LIBCXX_CXX_ABI=libcxxabi \
-D MLIR_ENABLE_BINDINGS_PYTHON=ON \
-D LLDB_ENABLE_PYTHON=ON \
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index ff63355222065..7b5ecd62080f3 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -37,6 +37,7 @@ jobs:
- name: Setup ccache
uses: hendrikmuhs/ccache-action at a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
with:
+ variant: "sccache"
max-size: "2000M"
- name: Build and Test
# Mark the job as a success even if the step fails so that people do
``````````
</details>
https://github.com/llvm/llvm-project/pull/149195
More information about the llvm-branch-commits
mailing list