[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.
This commit is contained in:
Louis Dionne 2023-05-02 17:12:04 -04:00
parent 20bf8c403c
commit c64f10bfe2

View File

@ -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: