From c64f10bfe20308ebc7d5d18912cd0ba82a44eaa1 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Tue, 2 May 2023 17:12:04 -0400 Subject: [PATCH] [clang] Build the ToT Clang in Release mode in the Clang/libcxx CI pipeline This is an attempt to reduce the insane amount of network we use when uploading Clang binaries to Buildkite for other jobs to use. We think that removing debug information will result in much smaller binaries. --- libcxx/utils/ci/buildkite-pipeline-clang.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libcxx/utils/ci/buildkite-pipeline-clang.yml b/libcxx/utils/ci/buildkite-pipeline-clang.yml index e9eefa8..3e40c2b 100644 --- a/libcxx/utils/ci/buildkite-pipeline-clang.yml +++ b/libcxx/utils/ci/buildkite-pipeline-clang.yml @@ -19,7 +19,10 @@ steps: - label: "Building clang" commands: - "mkdir install" - - "cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=install -DLLVM_ENABLE_PROJECTS=\"clang;compiler-rt\"" + # 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\"" - "ninja -C build install-clang install-clang-resource-headers" - "buildkite-agent artifact upload --debug 'install/**/*'" env: -- 2.7.4