diff options
-rw-r--r-- | Mk/bsd.gecko.mk | 2 | ||||
-rw-r--r-- | lang/rust/Makefile | 1 | ||||
-rw-r--r-- | lang/rust/files/patch-src_librustc__back_target_i686__unknown__freebsd.rs | 11 | ||||
-rw-r--r-- | textproc/ripgrep/Makefile | 11 | ||||
-rw-r--r-- | www/firefox/Makefile | 2 |
5 files changed, 22 insertions, 5 deletions
diff --git a/Mk/bsd.gecko.mk b/Mk/bsd.gecko.mk index 934a49eb8ee0..e4ded78f43de 100644 --- a/Mk/bsd.gecko.mk +++ b/Mk/bsd.gecko.mk @@ -395,7 +395,7 @@ MOZ_OPTIONS+= --enable-debug --disable-release STRIP= # ports/184285 .else MOZ_OPTIONS+= --disable-debug --disable-debug-symbols --enable-release -. if ${MOZILLA_VER:R:R} >= 56 +. if ${MOZILLA_VER:R:R} >= 56 && (${MACHINE_CPU:Msse2} || ${ARCH:Maarch64}) MOZ_OPTIONS+= --enable-rust-simd . endif .endif 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; diff --git a/textproc/ripgrep/Makefile b/textproc/ripgrep/Makefile index 97808454c5d8..21a996435723 100644 --- a/textproc/ripgrep/Makefile +++ b/textproc/ripgrep/Makefile @@ -5,7 +5,7 @@ PORTNAME= ripgrep PORTVERSION= 0.7.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= textproc MAINTAINER= petteri.valkonen@iki.fi @@ -68,11 +68,15 @@ PLIST_FILES= bin/rg \ man/man1/rg.1.gz OPTIONS_DEFINE= BASH FISH ZSH SIMD -OPTIONS_DEFAULT=BASH FISH ZSH SIMD +OPTIONS_DEFAULT=BASH FISH ZSH OPTIONS_DEFINE_amd64= AVX OPTIONS_DEFINE_i386= AVX +OPTIONS_DEFAULT_aarch64=SIMD +OPTIONS_DEFAULT_amd64= ${OPTIONS_DEFAULT_i386} +OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:S/SSE2/SIMD/} + AVX_DESC= ${SSE_DESC:S/SSE/AVX/} FISH_DESC= Install programmable completions for Fish @@ -86,7 +90,8 @@ FISH_PLIST_FILES= share/fish/completions/rg.fish # unstable features similar to how lang/rust bootstraps. www/firefox # uses the same hack when building with --enable-rust-simd. SIMD_MAKE_ENV= RUSTC_BOOTSTRAP=1 -SIMD_VARS= CARGO_FEATURES+=simd-accel +SIMD_VARS= CARGO_FEATURES+=simd-accel ${SIMD_VARS_${ARCH}} +SIMD_VARS_i386= RUSTFLAGS+="-C target-feature=+sse2" ZSH_PLIST_FILES= share/zsh/site-functions/_rg diff --git a/www/firefox/Makefile b/www/firefox/Makefile index f50a31fa05e0..eeaf1fd94518 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -3,7 +3,7 @@ PORTNAME= firefox DISTVERSION= 57.0 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= www ipv6 MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}/source \ |