summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-09-08 17:12:14 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-09-08 17:12:14 -0400
commiteb18da04506b959c0251099eae83e16d22ce8bcb (patch)
tree7ecd2c8e0afdf81eec1c883a322082f9643834c9 /src
parent0f7494216f55bb5d373027c2039d8c26dbc4a564 (diff)
pcre2: use jit_if_availablegrep-pcre2-0.1.2grep-0.2.3
This will allow PCRE2 to fall back to non-JIT matching when running on platforms without JIT support. ref https://github.com/BurntSushi/rust-pcre2/issues/3
Diffstat (limited to 'src')
-rw-r--r--src/args.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs
index 1a38d3ef..7aed9144 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -633,7 +633,7 @@ impl ArgMatches {
// For whatever reason, the JIT craps out during regex compilation with
// a "no more memory" error on 32 bit systems. So don't use it there.
if !cfg!(target_pointer_width = "32") {
- builder.jit(true);
+ builder.jit_if_available(true);
}
if self.pcre2_unicode() {
builder.utf(true).ucp(true);