aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-01 20:52:08 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-01 20:52:08 +0100
commit0eb238cf006caac8f7b19a85426905d388f6a20a (patch)
tree90c9acd83c029fb5759b56b77b483bd44f4511a6 /src/main.c
parent849d39783113dab5f3130e3e59cd8b30f53b136e (diff)
Force JIT compilation
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 1 insertions, 5 deletions
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