compiler-rt: cmake: use our FLAGS

This commit is contained in:
Juergen Daubert 2020-11-21 14:27:02 +00:00
parent 9eb8ca8063
commit 75d19ca705
2 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/eZyFe3u+Y3uPCJnQovitITMaY7GKHkt08hn9I8R6+bxqpQ6A+3Rkla3JXFILhKgETrOz7j7U0JopGJhNM8AAQ4=
SHA256 (Pkgfile) = 273145140bf6d33cf9baf77ffac7cea8dd03bbafcad8d7e066963959a49b6d36
RWSE3ohX2g5d/QDsYM325PqpYirmKeYXz/fvZHy8LbVVFLg1ltk0oelPFbW8NjSUlxfIi3Ki0WotdtKGLt6bg7tZFrQ2kZsagwM=
SHA256 (Pkgfile) = 3654772c9d081f1727608dfe58af914e5e18fb06245eee2e7de0c0f7836b9a0d
SHA256 (.footprint) = 3ced0f0c2e854514df8cb5a68ab818088865c0b2869de6c4ecf43aafb37605f8
SHA256 (compiler-rt-11.0.0.src.tar.xz) = 374aff82ff573a449f9aabbd330a5d0a441181c535a3599996127378112db234

View File

@ -10,11 +10,12 @@ source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/
build() {
cmake -S $name-$version.src -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCOMPILER_RT_INSTALL_PATH=/usr/lib/clang/$version \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-D CMAKE_INSTALL_PREFIX=/usr \
-D COMPILER_RT_INSTALL_PATH=/usr/lib/clang/$version \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-Wno-dev
ninja -C build
DESTDIR=$PKG ninja -C build install
cmake --build build
DESTDIR=$PKG cmake --install build
}