Skip to content

Commit 00f843e

Browse files
committed
Build LLVM toolchain with Ninja
We need to build our own Ninja as the version in the almalinux-8 repository is too old and causes the following errors: ninja : error : multiple outputs aren't (yet?) supported by depslog; bring this up on the mailing list if it affects you This was fixed in Ninja v1.10. Signed-off-by: Alice Ziuziakowska <[email protected]>
1 parent df441d7 commit 00f843e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

build-clang-with-args.sh

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ llvm_distribution_components+=";${llvm_tools}"
135135

136136
cmake "${llvm_dir}/llvm" \
137137
-Wno-dev \
138+
-GNinja \
138139
-DCMAKE_BUILD_TYPE="${build_type}" \
139140
-DCMAKE_INSTALL_PREFIX="${dist_dir}" \
140141
-DLLVM_TARGETS_TO_BUILD="RISCV" \

prepare-host.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,13 @@ dnf install -y \
3333
libffi-devel \
3434
expat-static \
3535
lld
36+
37+
# the version of ninja in almalinux-8 is too old -
38+
# we need at least version v1.10, so just build it ourselves
39+
TMP_DIR="$(mktemp -d)"
40+
git clone https://github.com/ninja-build/ninja.git \
41+
--branch v1.12.0 --depth 1 "${TMP_DIR}"
42+
cd "${TMP_DIR}"
43+
./configure.py --bootstrap
44+
install ninja /bin
45+
rm -rf "{$TMP_DIR}"

0 commit comments

Comments
 (0)