[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/01: Enable JIT on aarch64 and armv7
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/01: Enable JIT on aarch64 and armv7 |
Date: |
Wed, 22 May 2019 11:38:10 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 5c700ae832a01edffbb7d324f969c0cd9b9eba0e
Author: Andy Wingo <address@hidden>
Date: Wed May 22 17:36:02 2019 +0200
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.
---
acinclude.m4 | 24 +-----------------------
1 file changed, 1 insertion(+), 23 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 6febd33..631f9b0 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -585,27 +585,11 @@ AC_DEFUN([GUILE_ENABLE_JIT], [
case "$target_cpu" in
i?86|x86_64|amd64) 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 ;;
- s390*) JIT_AVAILABLE=yes ;;
- alpha*) JIT_AVAILABLE=yes ;;
*) ;;
esac
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,
[AS_HELP_STRING([--enable-jit[=yes/no/auto]],
[enable just-in-time code generation [default=auto]])])
@@ -614,13 +598,7 @@ AC_DEFUN([GUILE_ENABLE_JIT], [
case "x$enable_jit" in
xy*) enable_jit=yes ;;
xn*) enable_jit=no ;;
- xa* | x)
- # 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 ;;
+ xa* | x) enable_jit=$JIT_AVAILABLE ;;
*) AC_MSG_ERROR(bad value $enable_jit for --enable-jit) ;;
esac
AC_MSG_RESULT($enable_jit)