Use a bootstrapped -O0 compiler to compile the -O2 Guile

This reduces total build time to around 30 minutes or so.

* Makefile.am (SUBDIRS): Visit bootstrap/ before module/.

* bootstrap/Makefile.am: New file.

* configure.ac: Generate bootstrap/Makefile.

* meta/uninstalled-env.in (top_builddir): Add bootstrap/ to the
  GUILE_LOAD_COMPILED_PATH.

* module/Makefile.am: Simplify to just sort files in alphabetical order;
  since bootstrap/ was already compiled, we don't need to try to
  optimize compilation order.  Although the compiler will get faster as
  more of the compiler itself is optimized, this isn't a significant
  enough effect to worry about.
This commit is contained in:
Andy Wingo 2015-10-23 13:29:03 +00:00
commit 5f4ac529e1
5 changed files with 422 additions and 315 deletions

View file

@ -1643,6 +1643,7 @@ AC_CONFIG_FILES([
test-suite/standalone/Makefile
test-suite/vm/Makefile
meta/Makefile
bootstrap/Makefile
module/Makefile
])