summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2020-02-17 13:13:49 +0800
committerXinchen Hui <laruence@gmail.com>2020-02-17 13:13:49 +0800
commitde6984edd5ce7fa2b2f365b5ae770507ef42022d (patch)
tree0eede293a814df626c719041edf21ace956e2ac7 /ext
parent3d8342aa3c6ec53d63659a72797494de2047b975 (diff)
downloadphp-git-de6984edd5ce7fa2b2f365b5ae770507ef42022d.tar.gz
Fixed bug #79255 (PHP cannot be compiled with enable JIT)
Diffstat (limited to 'ext')
-rw-r--r--ext/opcache/config.m421
1 files changed, 8 insertions, 13 deletions
diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
index 5e61575d48..4289b438d5 100644
--- a/ext/opcache/config.m4
+++ b/ext/opcache/config.m4
@@ -42,19 +42,14 @@ if test "$PHP_OPCACHE" != "no"; then
AC_DEFINE(HAVE_JIT, 1, [Define to enable JIT])
ZEND_JIT_SRC="jit/zend_jit.c jit/zend_jit_vm_helpers.c"
- dnl Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if AC_TRY_EVAL(ac_compile); then
- case `/usr/bin/file conftest.o` in
- *"Mach-O 64-bit"*)
- DASM_FLAGS="-D X64APPLE=1 -D X64=1"
- ;;
- *64-bit*)
- DASM_FLAGS="-D X64=1"
- ;;
- esac
- fi
- rm -rf conftest*
+ case $host_alias in
+ *x86_64-*-darwin*)
+ DASM_FLAGS="-D X64APPLE=1 -D X64=1"
+ ;;
+ *x86_64*)
+ DASM_FLAGS="-D X64=1"
+ ;;
+ esac
if test "$enable_zts" = "yes"; then
DASM_FLAGS="$DASM_FLAGS -D ZTS=1"