Skip to content

Commit 0f7ab73

Browse files
committed
opcache/jit support: Mac M1 build fix
unfortunately host_cpu is set only as `arm`. adding preprocessor ARM64APPLE for future use to be able to distinguish possibly from an usual arm64 board (e.g. not all same registers, x29/x30 vs fp/lr etc).
1 parent e20473a commit 0f7ab73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/opcache/config.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ if test "$PHP_OPCACHE" != "no"; then
5858
x86*)
5959
DASM_ARCH="x86"
6060
;;
61+
arm*-*-darwin*)
62+
DASM_FLAGS="-D ARM64APPLE=1 -D ARM64=1"
63+
DASM_ARCH="arm64"
64+
;;
6165
aarch64*)
6266
DASM_FLAGS="-D ARM64=1"
6367
DASM_ARCH="arm64"

0 commit comments

Comments
 (0)