mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
[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:
parent
20bf8c403c
commit
c64f10bfe2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user