From 87c75125b44542c28e5e1a00f9eb0f9e3ee21f66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rainer=20M=C3=BCller?= Date: Tue, 27 Mar 2018 04:25:42 +0200 Subject: [PATCH] rust: Downgrade to llvm-4.0 The update to 1.24.0 in 4b2c24ca erroneously switched to LLVM 5.0, which is still not supported by this rust version. Compiling with rustc will produce "invalid expression" messages. See: https://github.com/rust-lang/rust/issues/43370 See: https://github.com/rust-lang/rust/issues/47464 --- lang/rust/Portfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lang/rust/Portfile b/lang/rust/Portfile index a3f198db3c6f6..1cb0bf1203c84 100644 --- a/lang/rust/Portfile +++ b/lang/rust/Portfile @@ -5,7 +5,7 @@ PortGroup muniversal 1.0 name rust version 1.24.1 -revision 1 +revision 2 categories lang devel platforms darwin supported_archs i386 x86_64 @@ -29,7 +29,9 @@ homepage https://www.rust-lang.org/ depends_build path:bin/cmake:cmake \ bin:python2.7:python27 -depends_lib port:llvm-5.0 +# Currently LLVM 4.0 is required, see this issue for LLVM 5.0 support: +# https://github.com/rust-lang/rust/issues/43370 . +depends_lib port:llvm-4.0 master_sites https://static.rust-lang.org/dist @@ -119,7 +121,7 @@ configure.args --enable-vendor \ --default-linker=${configure.cc} \ --disable-codegen-tests \ --disable-docs \ - --llvm-root=${prefix}/libexec/llvm-5.0 \ + --llvm-root=${prefix}/libexec/llvm-4.0 \ --release-channel=stable if {![variant_isset universal]} {