diff options
author | davidovski <david@davidovski.xyz> | 2022-03-05 23:51:45 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-03-05 23:51:45 +0000 |
commit | 80220d777d783fc0b11c491f0c93eb712d38e427 (patch) | |
tree | e7d84e50f6a3c41c25d8808fa6aa746a24a3a88f /repo/devel/llvm.xibuild | |
parent | 5bbf53467cd7b68557d8e37332968081c64e9908 (diff) |
fixed up js78
Diffstat (limited to 'repo/devel/llvm.xibuild')
-rw-r--r-- | repo/devel/llvm.xibuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/repo/devel/llvm.xibuild b/repo/devel/llvm.xibuild index 134a994..aa18732 100644 --- a/repo/devel/llvm.xibuild +++ b/repo/devel/llvm.xibuild @@ -1,6 +1,6 @@ #!/bin/sh -MAKEDEPS="make ninja cmake libedit libffi libxml2 ncurses python" +MAKEDEPS="make ninja cmake libedit libffi libxml2 ncurses python-setuptools python-sphinx" DEPS="perl zlib libffi libedit ncurses" PKG_VER=13.0.0 @@ -12,11 +12,11 @@ package () { } build () { - mkdir build && - cd build && - + mkdir build + cd build CC=gcc CXX=g++ \ - cmake -DCMAKE_INSTALL_PREFIX=/usr \ + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ -DLLVM_ENABLE_FFI=ON \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_BUILD_LLVM_DYLIB=ON \ @@ -25,11 +25,21 @@ build () { -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 \ -Wno-dev -G Ninja .. && - ninja + ninja llvm-tblgen && + ninja && + cd .. + + python3 utils/lit/setup.py build } package () { - DESTDIR=$PKG_DEST ninja install + DESTDIR=$PKG_DEST ninja -C build install + + cd build + python3 ../utils/lit/setup.py install --prefix=/usr --root=$PKG_DEST + } |