File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ PHP NEWS
42
42
43
43
- JIT:
44
44
. Fixed bug #77857 (Wrong result if executed with JIT). (Laruence)
45
+ . Fixed bug #79255 (PHP cannot be compiled with enable JIT).
46
+ (Laruence, Dmitry)
45
47
46
48
- LDAP:
47
49
. Removed deprecated ldap_sort. (mcmic)
Original file line number Diff line number Diff line change @@ -43,18 +43,28 @@ if test "$PHP_OPCACHE" != "no"; then
43
43
ZEND_JIT_SRC="jit/zend_jit.c jit/zend_jit_vm_helpers.c"
44
44
45
45
dnl Find out which ABI we are using.
46
- echo 'int i;' > conftest.$ac_ext
47
- if AC_TRY_EVAL(ac_compile); then
48
- case `/usr/bin/file conftest.o` in
49
- *"Mach-O 64-bit"*)
46
+ AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [
47
+ int main(void) {
48
+ return sizeof(void*) == 4;
49
+ }
50
+ ] ] ) ] ,[
51
+ ac_cv_32bit_build=no
52
+ ] ,[
53
+ ac_cv_32bit_build=yes
54
+ ] ,[
55
+ ac_cv_32bit_build=no
56
+ ] )
57
+
58
+ if test "$ac_cv_32bit_build" = "no"; then
59
+ case $host_alias in
60
+ *x86_64-*-darwin*)
50
61
DASM_FLAGS="-D X64APPLE=1 -D X64=1"
51
62
;;
52
- *64-bit *)
63
+ *x86_64 *)
53
64
DASM_FLAGS="-D X64=1"
54
65
;;
55
66
esac
56
67
fi
57
- rm -rf conftest*
58
68
59
69
if test "$enable_zts" = "yes"; then
60
70
DASM_FLAGS="$DASM_FLAGS -D ZTS=1"
You can’t perform that action at this time.
0 commit comments