summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lass2020-07-18 14:24:11 +0200
committerMichael Lass2020-07-18 14:28:28 +0200
commitdfabbe2458a822dd2872d5849bf8d322ab4ec7c5 (patch)
tree61e137166a9572333c4bfb8f1f5f628cbe559687
parente5e3739e847646f629a61734a7a05581e9d766ab (diff)
downloadaur-dfabbe2458a822dd2872d5849bf8d322ab4ec7c5.tar.gz
Do not build bindings and tests
Tests were build but never used. OCaml and go bindings were configured but not built when the corresponding dependencies were installed, leading to a failure during `ninja install`. Also fix build with `makepkg -e`. None of this changes the actual package content, so no pkgrel bump.
-rw-r--r--PKGBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9c1e12cab3a..5ff4da44069 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,11 @@
# Maintainer: Michael Lass <bevan@bi-co.net>
+# This PKGBUILD is maintained on github:
+# https://github.com/michaellass/AUR
+
+# This package does not include OCaml and go bindings. If you need them, please
+# post a comment in the AUR.
+
pkgname=llvm70
pkgdesc="LLVM compiler toolchain, version 7.0 (installed under /opt/llvm70)"
pkgver=7.0.1
@@ -14,7 +20,7 @@ source=(https://releases.llvm.org/$pkgver/llvm-$pkgver.src.tar.xz)
sha256sums=('a38dfc4db47102ec79dcc2aa61e93722c5f6f06f0a961073bd84b78fb949419b')
build() {
- mkdir "$srcdir/llvm-$pkgver.src/build"
+ mkdir -p "$srcdir/llvm-$pkgver.src/build"
cd "$srcdir/llvm-$pkgver.src/build"
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
@@ -25,10 +31,11 @@ build() {
-DLLVM_INSTALL_UTILS=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_ENABLE_FFI=ON \
- -DLLVM_BUILD_TESTS=ON \
+ -DLLVM_BUILD_TESTS=OFF \
-DLLVM_BUILD_DOCS=ON \
-DLLVM_ENABLE_SPHINX=ON \
-DLLVM_ENABLE_DOXYGEN=OFF \
+ -DLLVM_ENABLE_BINDINGS=OFF \
-DSPHINX_WARNINGS_AS_ERRORS=OFF \
-DFFI_INCLUDE_DIR=$(pkg-config --variable=includedir libffi) \
-DLLVM_BINUTILS_INCDIR=/usr/include