Skip to content
Snippets Groups Projects
Commit a711f45a authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

community/lld: build with ninja

parent 3a8b1a03
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ makedepends="
llvm$_llvmver-static
llvm$_llvmver-test-utils
llvm-libunwind-dev
ninja
xz
zlib-dev
"
......@@ -32,10 +33,7 @@ case "$CARCH" in
esac
build() {
mkdir -p "$builddir"/build
cd "$builddir"/build
cmake -Wno-dev .. \
cmake -B build -G Ninja -Wno-dev \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
......@@ -44,7 +42,7 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DLLVM_INCLUDE_TESTS=ON
make
cmake --build build
}
# NOTE: Try to set -DLLVM_EXTERNAL_LIT=/usr/lib/llvm$_llvmver/bin/lit amove.
......@@ -64,7 +62,7 @@ check() {
}
package() {
make -C build install DESTDIR="$pkgdir"
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment