[libcxx-commits] [libcxx] 19ef02e - [libc++][ci] Use ccache in the jobs that build Clang
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 30 13:10:10 PDT 2023
Author: Louis Dionne
Date: 2023-05-30T13:10:03-07:00
New Revision: 19ef02e3f4f82a439a94479589a9f1244d0b1b06
URL: https://github.com/llvm/llvm-project/commit/19ef02e3f4f82a439a94479589a9f1244d0b1b06
DIFF: https://github.com/llvm/llvm-project/commit/19ef02e3f4f82a439a94479589a9f1244d0b1b06.diff
LOG: [libc++][ci] Use ccache in the jobs that build Clang
This is an attempt to reduce the time taken by the Bootstrapping
build job and the Clang CI job that builds the compiler from scratch.
Differential Revision: https://reviews.llvm.org/D150908
Added:
Modified:
libcxx/utils/ci/buildkite-pipeline-clang.yml
libcxx/utils/ci/run-buildbot
Removed:
################################################################################
diff --git a/libcxx/utils/ci/buildkite-pipeline-clang.yml b/libcxx/utils/ci/buildkite-pipeline-clang.yml
index 40bb80aa8d30..323f4cf80b89 100644
--- a/libcxx/utils/ci/buildkite-pipeline-clang.yml
+++ b/libcxx/utils/ci/buildkite-pipeline-clang.yml
@@ -23,8 +23,9 @@ steps:
# We use Release here to avoid including debug information. Otherwise, the clang binary is very large, which
# is problematic because we need to upload the artifacts for other jobs to use. This may seem like nothing,
# but with the number of jobs we run daily, this can result in thousands of GB of network I/O.
- - "cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DLLVM_ENABLE_PROJECTS=\"clang;compiler-rt\""
+ - "cmake -S llvm -B build -G Ninja -DCMAKE_CXX_COMPILER_LAUNCHER="ccache" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DLLVM_ENABLE_PROJECTS=\"clang;compiler-rt\""
- "ninja -C build install-clang install-clang-resource-headers"
+ - "ccache -s"
- "tar -cJvf install.tar.xz install/"
- "buildkite-agent artifact upload --debug install.tar.xz"
env:
diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot
index 420dfde5645a..650201251f8d 100755
--- a/libcxx/utils/ci/run-buildbot
+++ b/libcxx/utils/ci/run-buildbot
@@ -340,6 +340,7 @@ bootstrapping-build)
-S "${MONOREPO_ROOT}/llvm" \
-B "${BUILD_DIR}" \
-GNinja -DCMAKE_MAKE_PROGRAM="${NINJA}" \
+ -DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" \
-DLLVM_ENABLE_PROJECTS="clang" \
More information about the libcxx-commits
mailing list