Skip to content

Commit

Permalink
Disable WX allocations on BSD systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Feb 3, 2024
1 parent 9ab279d commit 5a5d5af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subprojects/packagefiles/pcre2/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ if cc.get_id() != 'tcc'
pcre2_files += ['src/pcre2_jit_compile.c']
endif

if host_machine.system() == 'openbsd' or host_machine.system() == 'netbsd'
# jit compilation fails with "no more memory" if wx allocations are allowed.
libpcre2_c_args += ['-DSLJIT_WX_EXECUTABLE_ALLOCATOR']
endif

pcre2_includes = [
include_directories('.'),
include_directories('src/'),
Expand Down

0 comments on commit 5a5d5af

Please sign in to comment.