Generate an intermediate lib/compiler.com.
authorTaylor R Campbell <campbell@mumble.net>
Wed, 29 May 2013 14:04:37 +0000 (14:04 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 29 May 2013 14:24:50 +0000 (14:24 +0000)
We stopped installing this ages ago and hence stopped building it,
but now that each subdirectory is built in a separate process, it's
useful to avoid reloading the compiler repeatedly during the build.

src/Makefile.in

index 8e70e932e3d58df147ed428c3d20e20f118257ac..4ede37d7e3320dc44e58c3409d5a47602758a0f6 100644 (file)
@@ -101,6 +101,14 @@ lib/runtime.com: microcode/scheme
               | ../microcode/scheme --batch-mode --library ../lib \
                   --fasl "$${FASL}"))
 
+lib/compiler.com: compile-compiler
+lib/compiler.com: lib/runtime.com
+lib/compiler.com: microcode/scheme
+       (echo '(begin' && \
+        echo '  (load-option (quote COMPILER))' && \
+        echo '  (disk-save "lib/compiler.com"))') \
+       | ./microcode/scheme --batch-mode --library lib --band runtime.com
+
 lib/all.com: compile-compiler
 lib/all.com: compile-edwin
 lib/all.com: compile-sf
@@ -165,13 +173,10 @@ compile-compiler: syntax-compiler
        | '$(MIT_SCHEME_EXE)' --batch-mode
 
 .PHONY: bootstrap-toolchain
-bootstrap-toolchain: compile-compiler
-bootstrap-toolchain: compile-runtime
-bootstrap-toolchain: lib/runtime.com
+bootstrap-toolchain: lib/compiler.com
 bootstrap-toolchain: microcode/scheme
 BOOTSTRAP_TOOLCHAIN = \
-       ./microcode/scheme --batch-mode --library lib --band runtime.com \
-         --eval '(load-option (quote COMPILER))' \
+       ./microcode/scheme --batch-mode --library lib --band compiler.com \
          --eval '(load "etc/compile.scm")'
 
 .PHONY: compile-edwin