From 069d504b0bcf2d4ea08b0764e38fca90043fae50 Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Tue, 19 Apr 2022 21:06:06 +0000 Subject: [PATCH] llvm --- base/llvm/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/base/llvm/build.sh b/base/llvm/build.sh index af6d13d..00e0af0 100644 --- a/base/llvm/build.sh +++ b/base/llvm/build.sh @@ -16,12 +16,14 @@ build() { cd $pkgname-$pkgver if [ ! -z "$WITH_CROSS" ]; then - EXTRA_ARGS="-DCMAKE_SYSROOT=/usr/$ARCH-linux-musl \ + EXTRA_ARGS="-DCMAKE_SYSROOT=$WITH_CROSS_DIR \ -DCMAKE_C_COMPILER_WORKS=ON \ -DCMAKE_CXX_COMPILER_WORKS=ON \ -DCMAKE_SYSTEM_NAME=Linux \ -DLLVM_TABLEGEN=$(pwd)/host-build/bin/llvm-tblgen \ - -DCLANG_TABLEGEN=$(pwd)/host-build/bin/clang-tblgen" + -DCLANG_TABLEGEN=$(pwd)/host-build/bin/clang-tblgen \ + -DCMAKE_C_COMPILER=cc \ + -DCMAKE_CXX_COMPILER=c++" mkdir -p host-build cd host-build cmake -G Ninja -Wno-dev \