Skip to content

Commit 69e5ebe

Browse files
committed
Disable JIT on Apple Silicon + ZTS
1 parent 115c60e commit 69e5ebe

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
- name: ./configure
171171
uses: ./.github/actions/configure-macos
172172
with:
173-
configurationParameters: --enable-debug --disable-zts
173+
configurationParameters: --enable-debug --enable-zts
174174
- name: make
175175
run: |-
176176
export PATH="$(brew --prefix)/opt/bison/bin:$PATH"

ext/opcache/config.m4

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ if test "$PHP_OPCACHE" != "no"; then
4242
PHP_OPCACHE_JIT=no
4343
;;
4444
esac
45+
case "$host_vendor" in
46+
apple*)
47+
case "$host_cpu" in
48+
arm*)
49+
if test "$ZEND_ZTS" = "yes"; then
50+
AC_MSG_WARN([JIT not supported on Apple Silicon with ZTS])
51+
PHP_OPCACHE_JIT=no
52+
fi
53+
esac
54+
esac
4555
fi
4656

4757
if test "$PHP_OPCACHE_JIT" = "yes" ; then

0 commit comments

Comments
 (0)