Bootstrap optimization
authorMikael Djurfeldt <mikael@djurfeldt.com>
Thu, 25 Oct 2018 11:53:47 +0000 (13:53 +0200)
committerMikael Djurfeldt <mikael@djurfeldt.com>
Sun, 28 Oct 2018 12:36:19 +0000 (13:36 +0100)
* bootstrap/Makefile.am: Build both eval.go and psyntax-pp.go before
  the rest of the .go files so that they are handled by a fast macro
  expander. This saves time for a parallel build.

bootstrap/Makefile.am

index 496d5301ac76475784cb55f7f8f83bde1d35faec..91c3b93f5e29c565b7f2614503a57bb9770ee3c8 100644 (file)
@@ -27,5 +27,9 @@ GUILE_OPTIMIZATIONS = -O1
 include $(top_srcdir)/am/bootstrap.am
 
 # We must build the evaluator first, so that we can be sure to control
-# the stack.
-$(filter-out ice-9/eval.go, $(GOBJECTS)): ice-9/eval.go
+# the stack. Then, we build the syntax-case macro expander before the
+# rest, in order to speed up parallel builds.
+ice-9/psyntax-pp.go: | ice-9/eval.go
+
+$(filter-out ice-9/eval.go ice-9/psyntax-pp.go, $(GOBJECTS)): | \
+       ice-9/psyntax-pp.go