aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
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;