This commit is contained in:
Ella Stanforth 2022-04-19 21:06:06 +00:00
parent bd66ced110
commit 069d504b0b

View file

@ -16,12 +16,14 @@ build() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
if [ ! -z "$WITH_CROSS" ]; then 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_C_COMPILER_WORKS=ON \
-DCMAKE_CXX_COMPILER_WORKS=ON \ -DCMAKE_CXX_COMPILER_WORKS=ON \
-DCMAKE_SYSTEM_NAME=Linux \ -DCMAKE_SYSTEM_NAME=Linux \
-DLLVM_TABLEGEN=$(pwd)/host-build/bin/llvm-tblgen \ -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 mkdir -p host-build
cd host-build cd host-build
cmake -G Ninja -Wno-dev \ cmake -G Ninja -Wno-dev \