Skip to content

Commit

Permalink
rust: Downgrade to llvm-4.0
Browse files Browse the repository at this point in the history
The update to 1.24.0 in 4b2c24c erroneously switched to LLVM 5.0, which
is still not supported by this rust version. Compiling with rustc will
produce "invalid expression" messages.

See: rust-lang/rust#43370
See: rust-lang/rust#47464
  • Loading branch information
raimue committed Mar 27, 2018
1 parent 9f9d4ed commit 2a8279e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lang/rust/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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]} {
Expand Down

0 comments on commit 2a8279e

Please sign in to comment.