1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 13:30:26 +02:00

Enable JIT on aarch64 and armv7

* acinclude.m4 (GUILE_ENABLE_JIT): For MIPS, PPC, sparc, ia64, hppa,
  s390, and alpha: mark JIT as unavailable.  Only architectures left are
  x86-64, i686, aarch64, and armv7.  If JIT is available, enable it by
  default; previously only x86-64 and i686 were supported.
This commit is contained in:
Andy Wingo 2019-05-22 17:36:02 +02:00
parent 3b707bb43d
commit 5c700ae832

View file

@ -585,27 +585,11 @@ AC_DEFUN([GUILE_ENABLE_JIT], [
case "$target_cpu" in case "$target_cpu" in
i?86|x86_64|amd64) JIT_AVAILABLE=yes ;; i?86|x86_64|amd64) JIT_AVAILABLE=yes ;;
*arm*) JIT_AVAILABLE=yes ;; *arm*) JIT_AVAILABLE=yes ;;
*mips*) JIT_AVAILABLE=yes ;;
*powerpc*) JIT_AVAILABLE=yes ;;
*sparc*) JIT_AVAILABLE=yes ;;
ia64) JIT_AVAILABLE=yes ;;
hppa*) JIT_AVAILABLE=yes ;;
aarch64) JIT_AVAILABLE=yes ;; aarch64) JIT_AVAILABLE=yes ;;
s390*) JIT_AVAILABLE=yes ;;
alpha*) JIT_AVAILABLE=yes ;;
*) ;; *) ;;
esac esac
AC_MSG_RESULT($JIT_AVAILABLE) AC_MSG_RESULT($JIT_AVAILABLE)
case "$target_cpu" in
*arm*)
AC_CHECK_LIB(m, sqrtf, , [
JIT_AVAILABLE=no;
AC_MSG_WARN([JIT on ARM unavailable due to missing sqrtf])
])
;;
esac
AC_ARG_ENABLE(jit, AC_ARG_ENABLE(jit,
[AS_HELP_STRING([--enable-jit[=yes/no/auto]], [AS_HELP_STRING([--enable-jit[=yes/no/auto]],
[enable just-in-time code generation [default=auto]])]) [enable just-in-time code generation [default=auto]])])
@ -614,13 +598,7 @@ AC_DEFUN([GUILE_ENABLE_JIT], [
case "x$enable_jit" in case "x$enable_jit" in
xy*) enable_jit=yes ;; xy*) enable_jit=yes ;;
xn*) enable_jit=no ;; xn*) enable_jit=no ;;
xa* | x) xa* | x) enable_jit=$JIT_AVAILABLE ;;
# For the time being, only enable JIT on x86-64 and i686.
case "$target_cpu" in
x86_64|amd64) enable_jit=yes ;;
i?86) enable_jit=yes ;;
*) enable_jit=no ;;
esac ;;
*) AC_MSG_ERROR(bad value $enable_jit for --enable-jit) ;; *) AC_MSG_ERROR(bad value $enable_jit for --enable-jit) ;;
esac esac
AC_MSG_RESULT($enable_jit) AC_MSG_RESULT($enable_jit)