pcre2: fix build for s390x

The JIT fails to build.
This commit is contained in:
Alyssa Ross 2023-12-14 00:56:13 +01:00
parent 2b76501a4b
commit 752e3add07

View file

@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
"--enable-pcre2-16"
"--enable-pcre2-32"
# only enable jit on supported platforms which excludes Apple Silicon, see https://github.com/zherczeg/sljit/issues/51
"--enable-jit=auto"
"--enable-jit=${if stdenv.hostPlatform.isS390x then "no" else "auto"}"
]
# fix pcre jit in systemd units that set MemoryDenyWriteExecute=true like gitea
++ lib.optional withJitSealloc "--enable-jit-sealloc";