summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2017-11-27 22:02:29 +0000
committerJan Beich <jbeich@FreeBSD.org>2017-11-27 22:02:29 +0000
commitd65b2886b1b3b2135f0b8982de4d9754517acf61 (patch)
tree3d66af70b6fe803c5deca7c6f3517c47fc018d8b /lang
parentRemove DEBUG_DESC in favor of the default one. (diff)
lang/rust: avoid LLVM targeting SSE2 on i386 by default
This may help ports like textproc/ripgrep to run on old hardware. Rust itself still requires SSE2 until bootstrap is regenerated. PR: 223415 Approved by: rust (dumbbell)
Notes
Notes: svn path=/head/; revision=454995
Diffstat (limited to 'lang')
-rw-r--r--lang/rust/Makefile1
-rw-r--r--lang/rust/files/patch-src_librustc__back_target_i686__unknown__freebsd.rs11
2 files changed, 12 insertions, 0 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index 82120402d5ae..05fd74132c90 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -3,6 +3,7 @@
PORTNAME= rust
PORTVERSION?= 1.22.1
+PORTREVISION?= 1
CATEGORIES= lang
MASTER_SITES= http://static.rust-lang.org/dist/:src \
LOCAL/dumbbell/rust:rust_bootstrap \
diff --git a/lang/rust/files/patch-src_librustc__back_target_i686__unknown__freebsd.rs b/lang/rust/files/patch-src_librustc__back_target_i686__unknown__freebsd.rs
new file mode 100644
index 000000000000..47f594784f7e
--- /dev/null
+++ b/lang/rust/files/patch-src_librustc__back_target_i686__unknown__freebsd.rs
@@ -0,0 +1,11 @@
+--- src/librustc_back/target/i686_unknown_freebsd.rs.orig 2017-10-09 20:04:51 UTC
++++ src/librustc_back/target/i686_unknown_freebsd.rs
+@@ -13,7 +13,7 @@ use target::{Target, TargetResult};
+
+ pub fn target() -> TargetResult {
+ let mut base = super::freebsd_base::opts();
+- base.cpu = "pentium4".to_string();
++ base.cpu = "pentiumpro".to_string();
+ base.max_atomic_width = Some(64);
+ base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string());
+ base.stack_probes = true;