From eb18da04506b959c0251099eae83e16d22ce8bcb Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 8 Sep 2018 17:12:14 -0400 Subject: pcre2: use jit_if_available 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 --- src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3