summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2020-06-01 21:15:39 +0200
committerAndy Wingo <wingo@pobox.com>2020-06-01 21:15:39 +0200
commite2066d2e639ecc81078e83fcd7acd8b75faf27a3 (patch)
treece8b586b16364aee313557d568bc0cd82853eb40 /bootstrap
parent4c10ea0e5780d9eb3ad26bfe218a0c72030f15b2 (diff)
downloadguile-e2066d2e639ecc81078e83fcd7acd8b75faf27a3.tar.gz
Change -O1 compiler to use baseline and also resolve primitives
* bootstrap/Makefile.am (GUILE_OPTIMIZATIONS): Change to just -O1. * module/language/tree-il/spec.scm (choose-compiler): Use CPS for -O2 and higher. * module/system/base/optimize.scm (available-optimizations): CPS for -O2 and higher, but -Oresolve-primitives now at -O1 also.
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/Makefile.am7
1 files changed, 1 insertions, 6 deletions
diff --git a/bootstrap/Makefile.am b/bootstrap/Makefile.am
index 6010f8411..a4634c447 100644
--- a/bootstrap/Makefile.am
+++ b/bootstrap/Makefile.am
@@ -22,12 +22,7 @@
GUILE_WARNINGS = -W0
-# Loading eval.go happens before boot and therefore before modules are
-# resolved. For some reason if compiled without resolve-primitives,
-# attempts to resolve primitives at boot fail; weird. Should fix this
-# but in the meantime we turn on primitive resolution (which normally
-# only happens at -O2).
-GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives -Ono-cps
+GUILE_OPTIMIZATIONS = -O1
include $(top_srcdir)/am/bootstrap.am