1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-04-29 19:30:36 +02:00

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
parent f169be9fc8
commit 5f4ac529e1
5 changed files with 422 additions and 315 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
# Copyright (C) 2003, 2006, 2008, 2009, 2010, 2011, 2012 Free Software Foundation
# Copyright (C) 2003, 2006, 2008, 2009, 2010, 2011, 2012, 2015 Free Software Foundation
#
# This file is part of GUILE.
#
@ -84,7 +84,7 @@ then
then
GUILE_LOAD_COMPILED_PATH="${top_builddir}/module:${top_builddir}/guile-readline"
else
for d in "/module" "/guile-readline"
for d in "/module" "/bootstrap" "/guile-readline"
do
# This hair prevents double inclusion.
# The ":" prevents prefix aliasing.