llvm: cmake: use our FLAGS
This commit is contained in:
parent
0ab6d032b6
commit
9eb8ca8063
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/RUo4IZW6LYKUmRPqY/qto43TVj6uArIJVVrtz7xWEmJqGFDAw8WBTLK/Myx13ymGkRSiV2sf0pTWnH0hj9tQgU=
|
||||
SHA256 (Pkgfile) = f649db63db186ff7a147e5828cb35b5dbea20c685da32c9b79783b335609b825
|
||||
RWSE3ohX2g5d/aW3CmmM9xnXELdH5O3OsqYO2BmrJociv44KWBrYSLMH9vekSYHTXYF7EneTYfZ5LOVCY+TsH9l0q2QRfY8e0wg=
|
||||
SHA256 (Pkgfile) = b81936162bb836918e00ad357860870c335967d020f82cf8f002c1c15b0a01be
|
||||
SHA256 (.footprint) = 151b55039c88159e2afc2a77943303a2779e22b9c5c77e8cec0b94539b32ff83
|
||||
SHA256 (llvm-11.0.0.src.tar.xz) = 913f68c898dfb4a03b397c5e11c6a2f39d0f22ed7665c9cefa87a34423a72469
|
||||
SHA256 (llvm-config.h) = 2227b83b904348e5530f3475c978e11cb0f05a85024781dcb49ac86b65582707
|
||||
|
31
llvm/Pkgfile
31
llvm/Pkgfile
@ -14,23 +14,24 @@ build() {
|
||||
export CXX=g++
|
||||
|
||||
cmake -S $name-$version.src -B build -G Ninja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DLLVM_TARGETS_TO_BUILD='X86;AMDGPU;BPF' \
|
||||
-DLLVM_BUILD_LLVM_DYLIB=1 \
|
||||
-DLLVM_LINK_LLVM_DYLIB=1 \
|
||||
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
||||
-DLLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \
|
||||
-DLLVM_INCLUDE_EXAMPLES=0 \
|
||||
-DLLVM_INCLUDE_TESTS=0 \
|
||||
-DLLVM_ENABLE_FFI=1 \
|
||||
-DLLVM_ENABLE_RTTI=1 \
|
||||
-DLLVM_ENABLE_OCAMLDOC=0 \
|
||||
-DLLVM_INSTALL_UTILS=1 \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-D LLVM_TARGETS_TO_BUILD='X86;AMDGPU;BPF' \
|
||||
-D LLVM_BUILD_LLVM_DYLIB=1 \
|
||||
-D LLVM_LINK_LLVM_DYLIB=1 \
|
||||
-D LLVM_PARALLEL_COMPILE_JOBS="${JOBS:-1}" \
|
||||
-D LLVM_INCLUDE_EXAMPLES=0 \
|
||||
-D LLVM_INCLUDE_TESTS=0 \
|
||||
-D LLVM_ENABLE_FFI=1 \
|
||||
-D LLVM_ENABLE_RTTI=1 \
|
||||
-D LLVM_ENABLE_OCAMLDOC=0 \
|
||||
-D LLVM_INSTALL_UTILS=1 \
|
||||
-Wno-dev
|
||||
|
||||
ninja -C build
|
||||
DESTDIR=$PKG ninja -C build install
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
||||
# multilib stub
|
||||
mv $PKG/usr/include/llvm/Config/llvm-config{,-64}.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user