1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

fix Apple Silicon JIT compilation

* configure.ac: check for pthread_jit_write_protect_np.

* libguile/jit.c: add support for Apple Silicon JIT compilation.

Fixes https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44505
This commit is contained in:
Aleix Conchillo Flaqué 2022-11-17 17:36:15 -08:00 committed by Daniel Llorens
parent b54263dc98
commit 3bdcc3668f
2 changed files with 27 additions and 1 deletions

View file

@ -1187,6 +1187,9 @@ case "$with_threads" in
pthread_get_stackaddr_np pthread_attr_get_np pthread_sigmask \
pthread_cancel])
# Apple Silicon JIT code arena needs to be unprotected before writing.
AC_CHECK_FUNCS([pthread_jit_write_protect_np])
# On past versions of Solaris, believe 8 through 10 at least, you
# had to write "pthread_once_t foo = { PTHREAD_ONCE_INIT };".
# This is contrary to POSIX: