aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-12 14:11:11 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-12 14:14:01 +0200
commit3dbe27e7f2807ef9aa9249736e35b8f71beed090 (patch)
treed0eb6538157544f13a0d9c0a58422675cc044aed /testing
parente6ca0848df365e43b19ecff2cca63e2ac4aebc76 (diff)
downloadaports-3dbe27e7f2807ef9aa9249736e35b8f71beed090.tar.bz2
aports-3dbe27e7f2807ef9aa9249736e35b8f71beed090.tar.xz
testing/rust: build against llvm3.9
Diffstat (limited to 'testing')
-rw-r--r--testing/rust/APKBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/rust/APKBUILD b/testing/rust/APKBUILD
index d8d0bb84ab..8b9404966f 100644
--- a/testing/rust/APKBUILD
+++ b/testing/rust/APKBUILD
@@ -5,6 +5,7 @@ pkgname=rust
pkgver=1.16.0
# Git revision of prebuilt Cargo to use for bootstrapping, from src/stage0.txt.
_cargo_gitrev=6e0c18cccc8b0c06fba8a8d76486f81a792fb420
+_llvmver=3.9
pkgrel=1
pkgdesc="The Rust Programming Language (compiler)"
url="http://www.rust-lang.org"
@@ -15,7 +16,7 @@ license="ASL-2.0 BSD ISC MIT"
# See: https://github.com/rust-lang/rust/issues/11937
depends="$pkgname-stdlib=$pkgver-r$pkgrel gcc llvm-libunwind-dev musl-dev"
# libffi-dev is needed just because we compile llvm with LLVM_ENABLE_FFI.
-makedepends="cmake file libffi-dev llvm-libunwind-dev llvm llvm-dev
+makedepends="cmake file libffi-dev llvm-libunwind-dev llvm$_llvmver-dev
musl-dev python2 tar zlib-dev"
subpackages="$pkgname-dbg $pkgname-stdlib
$pkgname-gdb::noarch $pkgname-lldb::noarch $pkgname-doc"
@@ -89,7 +90,7 @@ build() {
--release-channel="stable" \
--enable-local-rust \
--local-rust-root="$_stage0dir" \
- --llvm-root="/usr" \
+ --llvm-root="/usr/lib/llvm$_llvmver" \
--musl-root="/usr" \
--enable-vendor \
--enable-llvm-link-shared \