Disable usage of wx pages on darvin. (#4311)

This commit is contained in:
Rot127 2024-03-03 03:39:12 +00:00 committed by GitHub
parent 33c8299eef
commit 905416f928
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ if cc.get_id() != 'tcc' and target_machine.cpu_family() in cpu_jit_supported
pcre2_files += ['src/pcre2_jit_compile.c']
endif
if target_machine.system() == 'openbsd'
if target_machine.system() == 'openbsd' or target_machine.system() == 'darwin'
# jit compilation fails with "no more memory" if wx allocations are allowed.
libpcre2_c_args += ['-DSLJIT_WX_EXECUTABLE_ALLOCATOR']
elif target_machine.system() == 'netbsd'

View file

@ -68,7 +68,7 @@ if cc.get_id() != 'tcc' and target_machine.cpu_family() in cpu_jit_supported
pcre2_files += ['src/pcre2_jit_compile.c']
endif
if target_machine.system() == 'openbsd'
if target_machine.system() == 'openbsd' or target_machine.system() == 'darwin'
# jit compilation fails with "no more memory" if wx allocations are allowed.
libpcre2_c_args += ['-DSLJIT_WX_EXECUTABLE_ALLOCATOR']
elif target_machine.system() == 'netbsd'