Merge pull request #300565 from trofi/pcre2-fix-jit

pcre2: backport jit auto-detection
This commit is contained in:
Mario Rodas 2024-04-05 21:41:48 -05:00 committed by GitHub
commit 9a92af3a87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -13,6 +13,16 @@ stdenv.mkDerivation rec {
hash = "sha256-4qU5hP8LB9/bWuRIa7ubIcyo598kNAlsyb8bcow1C8s=";
};
postPatch = ''
# Fix jit autodetection:
# https://github.com/PCRE2Project/pcre2/pull/396
# Applying manually to avoid fetchpatch and autoreconfHook.
# TODO: remove once 10.44 is released
substituteInPlace configure --replace-fail \
'#include "src/sljit/sljitConfigInternal.h"' \
'#include "src/sljit/sljitConfigCPU.h"'
'';
configureFlags = [
"--enable-pcre2-16"
"--enable-pcre2-32"