diff options
Diffstat (limited to 'dev-lang/rust/rust-1.32.0.ebuild')
-rw-r--r-- | dev-lang/rust/rust-1.32.0.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/dev-lang/rust/rust-1.32.0.ebuild b/dev-lang/rust/rust-1.32.0.ebuild index bc2a6106b8ad..73715829cfaa 100644 --- a/dev-lang/rust/rust-1.32.0.ebuild +++ b/dev-lang/rust/rust-1.32.0.ebuild @@ -5,6 +5,8 @@ EAPI=6 PYTHON_COMPAT=( python2_7 python3_{5,6} pypy ) +LLVM_MAX_SLOT=7 + inherit check-reqs eapi7-ver estack flag-o-matic llvm multiprocessing multilib-build python-any-r1 rust-toolchain toolchain-funcs if [[ ${PV} = *beta* ]]; then @@ -45,7 +47,7 @@ COMMON_DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425 net-libs/libssh2 net-libs/http-parser:= net-misc/curl[ssl] - system-llvm? ( >=sys-devel/llvm-7:= )" + system-llvm? ( sys-devel/llvm:7= )" DEPEND="${COMMON_DEPEND} ${PYTHON_DEPS} || ( @@ -65,6 +67,9 @@ PATCHES=( "${FILESDIR}"/1.30.1-clippy-sysroot.patch "${FILESDIR}"/1.32.0-fix-configure-of-bundled-llvm.patch "${FILESDIR}"/1.32.0-system-llvm-7-SIGSEGV.patch + # Support LibreSSL 2.8.x: https://github.com/sfackler/rust-openssl/commit/9fd7584a84168655cb27e03b7e19a9847b88e77f + # Support LibreSSL 2.9.0: https://github.com/sfackler/rust-openssl/commit/af4488357c9b3e003b883e89c16aaa675ad0c6ac + "${FILESDIR}"/1.32.0-libressl.patch ) toml_usex() { @@ -138,6 +143,7 @@ src_configure() { release-debuginfo = $(toml_usex debug) assertions = $(toml_usex debug) targets = "${LLVM_TARGETS// /;}" + experimental-targets = "" link-shared = $(toml_usex system-llvm) [build] build = "${rust_target}" @@ -184,7 +190,7 @@ src_configure() { EOF if use system-llvm; then cat <<- EOF >> "${S}"/config.toml - llvm-config = "$(get_llvm_prefix)/bin/llvm-config" + llvm-config = "$(get_llvm_prefix "${LLVM_MAX_SLOT}")/bin/llvm-config" EOF fi done |