diff options
author | Juergen Daubert <jue@jue.li> | 2020-11-21 14:26:49 +0000 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2020-11-21 14:26:49 +0000 |
commit | 9eb8ca8063b0a057a131a53bbe9b9f96d3e2e0c6 (patch) | |
tree | 4b35cb1b65b574ece8d797c5e1107832d95190a0 /llvm | |
parent | 0ab6d032b6ac1c8c138a52dddef09f3914afae93 (diff) | |
download | opt-9eb8ca8063b0a057a131a53bbe9b9f96d3e2e0c6.tar.gz opt-9eb8ca8063b0a057a131a53bbe9b9f96d3e2e0c6.tar.xz |
llvm: cmake: use our FLAGS
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/.signature | 4 | ||||
-rw-r--r-- | llvm/Pkgfile | 31 |
2 files changed, 18 insertions, 17 deletions
diff --git a/llvm/.signature b/llvm/.signature index 4ef7bccb0..7d3f1c540 100644 --- a/llvm/.signature +++ b/llvm/.signature @@ -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 diff --git a/llvm/Pkgfile b/llvm/Pkgfile index 1ae85a06a..651946ef3 100644 --- a/llvm/Pkgfile +++ b/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 |