summaryrefslogtreecommitdiff
path: root/repo/devel/llvm.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-06 15:21:10 +0000
committerdavidovski <david@davidovski.xyz>2022-03-06 15:21:10 +0000
commit75e7bb9c72d562d397f9fb62072ab114cfbc6244 (patch)
treec2af33a2c487d2b411e3be0900f675c41ca5ab4f /repo/devel/llvm.xibuild
parentce1ac2b89b42e4e05ba706b7bbdcc39cd2e64e8b (diff)
fixed python compilation for js78
Diffstat (limited to 'repo/devel/llvm.xibuild')
-rw-r--r--repo/devel/llvm.xibuild39
1 files changed, 27 insertions, 12 deletions
diff --git a/repo/devel/llvm.xibuild b/repo/devel/llvm.xibuild
index aa18732..82496a4 100644
--- a/repo/devel/llvm.xibuild
+++ b/repo/devel/llvm.xibuild
@@ -16,18 +16,27 @@ build () {
cd build
CC=gcc CXX=g++ \
cmake \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DLLVM_ENABLE_FFI=ON \
- -DCMAKE_BUILD_TYPE=Release \
- -DLLVM_BUILD_LLVM_DYLIB=ON \
- -DLLVM_LINK_LLVM_DYLIB=ON \
- -DLLVM_ENABLE_RTTI=ON \
- -DLLVM_TARGETS_TO_BUILD="host;AMDGPU;BPF" \
- -DLLVM_BUILD_TESTS=ON \
- -DLLVM_INSTALL_UTILS=ON \
- -DLLVM_ENABLE_SPHINX=ON \
- -DLLVM_ENABLE_TERMINFO=ON \
- -DLLVM_BINUTILS_INCDIR=/usr/include \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLLVM_BINUTILS_INCDIR=/usr/include \
+ -DLLVM_BUILD_DOCS=OFF \
+ -DLLVM_BUILD_EXAMPLES=OFF \
+ -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON \
+ -DLLVM_BUILD_LLVM_DYLIB=ON \
+ -DLLVM_BUILD_TESTS=ON \
+ -DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-linux-musl" \
+ -DLLVM_ENABLE_ASSERTIONS=OFF \
+ -DLLVM_ENABLE_FFI=ON \
+ -DLLVM_ENABLE_LIBCXX=OFF \
+ -DLLVM_ENABLE_PIC=ON \
+ -DLLVM_ENABLE_RTTI=ON \
+ -DLLVM_ENABLE_SPHINX=OFF \
+ -DLLVM_ENABLE_TERMINFO=ON \
+ -DLLVM_ENABLE_ZLIB=ON \
+ -DLLVM_HOST_TRIPLE="x86_64-linux-musl" \
+ -DLLVM_INCLUDE_EXAMPLES=OFF \
+ -DLLVM_LINK_LLVM_DYLIB=ON \
+ -DLLVM_APPEND_VC_REV=OFF \
-Wno-dev -G Ninja .. &&
ninja llvm-tblgen &&
ninja &&
@@ -42,4 +51,10 @@ package () {
cd build
python3 ../utils/lit/setup.py install --prefix=/usr --root=$PKG_DEST
+ mkdir $PKG_DEST/usr/bin
+ for path in bin/*; do
+ name=${path##*/}
+ ln -s ../lib/llvm/bin/$name $PKG_DEST/usr/bin/$name
+ done
+
}