From 0eb238cf006caac8f7b19a85426905d388f6a20a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 1 Nov 2024 20:52:08 +0100 Subject: Force JIT compilation --- src/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a23ff56..2e71bef 100644 --- a/src/main.c +++ b/src/main.c @@ -347,12 +347,8 @@ pattern_comp(u8view_t pat) pcre2_bitch_and_die( ec, "failed to compile regex at byte offset %zu: %s", eoff); } - if ((ec = pcre2_jit_compile(op.re, PCRE2_JIT_COMPLETE)) != 0) { + if ((ec = pcre2_jit_compile(op.re, PCRE2_JIT_COMPLETE)) != 0) pcre2_bitch_and_die(ec, "failed to JIT compile regex: %s"); - rv = EXIT_WARNING; - pcre2_match_fn = pcre2_match; - } else - pcre2_match_fn = pcre2_jit_match; #if DEBUG op.free_me = true; #endif -- cgit v1.2.3