FreeBSD Bugzilla – Attachment 187662 Details for
Bug 223314
textproc/ripgrep: expose SIMD options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1.1
ripgrep.simd.diff (text/plain), 1.37 KB, created by
Jan Beich
on 2017-11-01 21:39:34 UTC
(
hide
)
Description:
v1.1
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2017-11-01 21:39:34 UTC
Size:
1.37 KB
patch
obsolete
>From 7b300db680be47dfc7bf9e3b4bb43c07043d658c Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Sun, 29 Oct 2017 21:14:42 +0000 >Subject: [PATCH] textproc/ripgrep: expose SIMD options > >PR: 223314 >Approved by: Petteri Valkonen (maintainer) !!! NOT YET !!! >--- > textproc/ripgrep/Makefile | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > >diff --git a/textproc/ripgrep/Makefile b/textproc/ripgrep/Makefile >index 842fd3d0bf1c..19dc86a90a29 100644 >--- a/textproc/ripgrep/Makefile >+++ b/textproc/ripgrep/Makefile >@@ -5,6 +5,7 @@ > > PORTNAME= ripgrep > PORTVERSION= 0.7.1 >+PORTREVISION= 1 > CATEGORIES= textproc > > MAINTAINER= petteri.valkonen@iki.fi >@@ -73,6 +74,22 @@ CARGO_CRATES= aho-corasick-0.6.3 \ > RIPGREP_OUTDIR= ${WRKDIR}/cargo-out > CARGO_ENV= RIPGREP_OUTDIR=${RIPGREP_OUTDIR} > >+OPTIONS_DEFINE= SIMD >+OPTIONS_DEFAULT=SIMD >+ >+OPTIONS_DEFINE_amd64= AVX >+OPTIONS_DEFINE_i386= AVX >+ >+AVX_DESC= ${SSE_DESC:S/SSE/AVX/} >+AVX_VARS= CARGO_FEATURES+=avx-accel RUSTFLAGS+="-C target-feature=+avx" >+AVX_IMPLIES= SIMD >+ >+# simd crate uses cfg_target_feature which isn't stable yet, so unlock >+# 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 >+ > post-patch: > @${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
petteri.valkonen
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 223314
:
187574
| 187662