summaryrefslogtreecommitdiff
path: root/am
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-03-26 19:17:26 +0100
committerLudovic Courtès <ludo@gnu.org>2009-03-26 19:17:26 +0100
commit7ca96180f00800414a9cf855e5ca4dceb9baca07 (patch)
tree3307cb76e850551402cd81eef4d8250f5bb670f9 /am
parent6cc323e2ff4e555d58e115032016a50ef15a1948 (diff)
Run the stack calibration script before running the compiler.
* am/guilec (.scm.go): Use `pre-inst-guile' and load `stack-limit-calibration.scm'. This is particularly useful when building the first `.go' files where the compiler is run using the interpreter, which may end up using a lot of stack space. * libguile/Makefile.am (BUILT_SOURCES): Add `stack-limit-calibration.scm'. (TESTS, TESTS_ENVIRONMENT): Remove. (stack-limit-calibration.scm): Prepend `-' so that any errors during the calibration are ignored.
Diffstat (limited to 'am')
-rw-r--r--am/guilec4
1 files changed, 3 insertions, 1 deletions
diff --git a/am/guilec b/am/guilec
index 939ea76c4..aaa1747eb 100644
--- a/am/guilec
+++ b/am/guilec
@@ -10,4 +10,6 @@ CLEANFILES = $(GOBJECTS)
SUFFIXES = .scm .go
.scm.go:
$(MKDIR_P) `dirname $@`
- $(top_builddir)/pre-inst-guile-env $(top_builddir)/guile-tools compile -o "$@" "$<"
+ $(top_builddir)/pre-inst-guile \
+ -l $(top_builddir)/libguile/stack-limit-calibration.scm \
+ $(top_srcdir)/scripts/compile -o "$@" "$<"