diff --git a/crates/pi-uu-grep/src/lib.rs b/crates/pi-uu-grep/src/lib.rs index 567a58280..3ed7631db 100644 --- a/crates/pi-uu-grep/src/lib.rs +++ b/crates/pi-uu-grep/src/lib.rs @@ -34,10 +34,11 @@ pub use rg::run as run_rg; /// PCRE2 JIT toggle: `OMP_PCRE2_JIT=1` forces JIT on, `0`/`false` forces it /// off. Unset, JIT stays on everywhere except macOS, where PCRE2's SLJIT /// executable allocator can fault while compiling patterns (issue #7399). -pub(crate) static PCRE2_JIT_ENABLED: LazyLock = LazyLock::new(|| match std::env::var("OMP_PCRE2_JIT") { - Ok(v) if !v.is_empty() => v != "0" && !v.eq_ignore_ascii_case("false"), - _ => !cfg!(target_os = "macos"), -}); +pub(crate) static PCRE2_JIT_ENABLED: LazyLock = + LazyLock::new(|| match std::env::var("OMP_PCRE2_JIT") { + Ok(v) if !v.is_empty() => v != "0" && !v.eq_ignore_ascii_case("false"), + _ => !cfg!(target_os = "macos"), + }); #[derive(Parser, Debug)] #[command(