Skip to content

Commit

Permalink
ci: Use ninja in build-clang.sh
Browse files Browse the repository at this point in the history
Now that we have brought ninja back to the installed base packages, we can
use it for the initial Clang build as well.
  • Loading branch information
ishitatsuyuki committed Oct 20, 2022
1 parent aad709b commit 354e95a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ INC="/rustroot/include:/usr/include"
# disable them. BOLT is used for optimizing LLVM.
hide_output \
cmake ../llvm \
-GNinja \
-DCMAKE_C_COMPILER=/rustroot/bin/gcc \
-DCMAKE_CXX_COMPILER=/rustroot/bin/g++ \
-DCMAKE_BUILD_TYPE=Release \
Expand All @@ -39,8 +40,8 @@ hide_output \
-DLLVM_ENABLE_PROJECTS="clang;lld;compiler-rt;bolt" \
-DC_INCLUDE_DIRS="$INC"

hide_output make -j$(nproc)
hide_output make install
hide_output ninja
hide_output ninja install

cd ../..
rm -rf llvm-project

0 comments on commit 354e95a

Please sign in to comment.