Skip to content

Commit fafa34d

Browse files
5u623l20ramsey
authored andcommitted
Add host_cpu type for FreeBSD
In FreeBSD world x86_64 host type is identified as amd64 so add proper checks for FreeBSD amd64 hosts. Close phpGH-12736
1 parent daa38dd commit fafa34d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/opcache/config.m4

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if test "$PHP_OPCACHE" != "no"; then
2929

3030
if test "$PHP_OPCACHE_JIT" = "yes"; then
3131
case $host_cpu in
32-
i[[34567]]86*|x86*|aarch64)
32+
i[[34567]]86*|x86*|aarch64|amd64)
3333
;;
3434
*)
3535
AC_MSG_WARN([JIT not supported by host architecture])
@@ -48,7 +48,8 @@ if test "$PHP_OPCACHE" != "no"; then
4848
DASM_FLAGS="-D X64APPLE=1 -D X64=1"
4949
DASM_ARCH="x86"
5050
;;
51-
x86_64*)
51+
*x86_64*|amd64-*-freebsd*)
52+
IR_TARGET=IR_TARGET_X64
5253
DASM_FLAGS="-D X64=1"
5354
DASM_ARCH="x86"
5455
;;

0 commit comments

Comments
 (0)