Skip to content

Commit 68ad401

Browse files
committed
Implement handling for JIT recognition when cross compiling
1 parent db1534b commit 68ad401

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ext/pcre/config0.m4

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,16 @@ PHP_ARG_WITH(pcre-jit,,[ --with-pcre-jit Enable PCRE JIT functionality
7171
AC_MSG_RESULT([no])
7272
],
7373
[
74-
dnl cross compilation might want to rely on arch names
75-
AC_MSG_RESULT([no])
74+
AC_CANONICAL_HOST
75+
case $host_cpu in
76+
arm*|i[34567]86|x86_64|mips*|powerpc*|sparc)
77+
AC_MSG_RESULT([yes])
78+
AC_DEFINE(HAVE_PCRE_JIT_SUPPORT, 1, [])
79+
;;
80+
*)
81+
AC_MSG_RESULT([no])
82+
;;
83+
esac
7684
])
7785
fi
7886

0 commit comments

Comments
 (0)