[llvm] workflows: Rewrite build-ci-container to work on larger runners (PR #117353)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 23 17:50:20 PST 2024


================
@@ -36,7 +34,29 @@ RUN cmake -B ./build -G Ninja ./llvm \
   -DCMAKE_INSTALL_PREFIX="$LLVM_SYSROOT" \
   -DLLVM_ENABLE_PROJECTS="bolt;clang;lld;clang-tools-extra" \
   -DLLVM_DISTRIBUTION_COMPONENTS="lld;compiler-rt;clang-format;scan-build" \
-  -DCLANG_DEFAULT_LINKER="lld" \
-  -DBOOTSTRAP_CLANG_PGO_TRAINING_DATA_SOURCE_DIR=/llvm-project-llvmorg-$LLVM_VERSION/llvm
+  -DCLANG_DEFAULT_LINKER="lld"
+
+RUN ninja -C ./build stage2-clang-bolt stage2-install-distribution && ninja -C ./build install-distribution && rm -rf ./build
----------------
boomanaiden154 wrote:

Maybe add a comment on why the `rm -rf ./build` is here? I believe it was originally to avoid out of disk space errors. Assuming the depot runners have enough disk, it would still be useful as it probably reduces checkpointing time.

https://github.com/llvm/llvm-project/pull/117353


More information about the llvm-commits mailing list