From 75e7bb9c72d562d397f9fb62072ab114cfbc6244 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 6 Mar 2022 15:21:10 +0000 Subject: fixed python compilation for js78 --- repo/devel/llvm.xibuild | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) (limited to 'repo/devel/llvm.xibuild') 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 + } -- cgit v1.2.1