summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJingbei Li2020-12-15 15:08:07 +0800
committerJingbei Li2020-12-15 15:08:07 +0800
commit6d02c885192a475c6b091c63a09df35afbc84e4f (patch)
tree4b75b68f58a2849a5756d46bc79a133926ac3033 /PKGBUILD
parent48b73b8cfee148802175283399749dc3e6dca5d4 (diff)
downloadaur-llvm8.tar.gz
added gcc8
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d2015f174f9..4f07e932fcb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,11 +4,11 @@
pkgname=('llvm8' 'llvm8-libs')
pkgver=8.0.1
-pkgrel=2
+pkgrel=3
arch=('x86_64')
url="https://llvm.org/"
license=('custom:University of Illinois/NCSA Open Source License')
-makedepends=('cmake' 'ninja' 'libffi' 'libedit' 'ncurses' 'libxml2'
+makedepends=('cmake' 'gcc8' 'ninja' 'libffi' 'libedit' 'ncurses' 'libxml2'
'python-sphinx' 'python-recommonmark' 'python-setuptools')
options=('staticlibs')
source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver/llvm-$pkgver.src.tar.xz)
@@ -22,6 +22,9 @@ prepare() {
build() {
cd "$srcdir/llvm-$pkgver.src/build"
+ export CC=gcc-8
+ export CXX=g++-8
+
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -41,13 +44,13 @@ build() {
ninja
}
-check() {
- cd "$srcdir/llvm-$pkgver.src/build"
- ninja check
-}
+#check() {
+# cd "$srcdir/llvm-$pkgver.src/build"
+# ninja check
+#}
package_llvm8() {
- pkgdesc="Collection of modular and reusable compiler and toolchain technologies"
+ pkgdesc="Collection of modular and reusable compiler and toolchain technologies (8.x)"
depends=('llvm8-libs' 'perl')
optdepends=('python-setuptools: for using lit (LLVM Integrated Tester)')
provides=("llvm=$pkgver")