aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rust
diff options
context:
space:
mode:
Diffstat (limited to 'testing/rust')
-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 \