summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-10-10 10:02:55 +0200
committerAndy Wingo <wingo@pobox.com>2018-10-10 10:02:55 +0200
commit4aa4a6d590eb118e1cfe16ee546495d6c00e61b8 (patch)
tree57917851579d93d6bbfc2c0acba83dcbc278a9dc /acinclude.m4
parente08d10af6786d729eff199760011df91ab49067d (diff)
downloadguile-4aa4a6d590eb118e1cfe16ee546495d6c00e61b8.tar.gz
Only enable JIT by default on x86-64v2.9.0
* acinclude.m4: Disable JIT by default on not-x86-64. Although I got JIT mostly working on 32-bit x86, I got nondeterministic segfaults deep in lightning, on that platform; perhaps indicating a bug in the optimizer. After a day of poking and not solving the problem, I think that I don't want the complexity of Lightning's node representation, especially on platforms that get less testing. In the future we'll use the lightning backends without the node layer. * NEWS: Update.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 085711454..9a2972f12 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -614,7 +614,12 @@ AC_DEFUN([GUILE_ENABLE_JIT], [
case "x$enable_jit" in
xy*) enable_jit=yes ;;
xn*) enable_jit=no ;;
- xa* | x) enable_jit=$JIT_AVAILABLE ;;
+ xa* | x)
+ # For the time being, only enable JIT on x86-64.
+ case "$target_cpu" in
+ x86_64|amd64) enable_jit=yes ;;
+ *) enable_jit=no ;;
+ esac
*) AC_MSG_ERROR(bad value $enable_jit for --enable-jit) ;;
esac
AC_MSG_RESULT($enable_jit)