;;;; Script to incrementally syntax the compiler
\f
-(with-loader-base-uri "../lib" ;Use the accompanying sf and cref.
- (lambda ()
- (load-option 'CREF)
- (load-option 'SF)))
+(load-option 'CREF)
+(load-option 'SF)
;; Guarantee that the compiler's package structure exists.
(if (not (name->package '(COMPILER)))
;; Resyntax any files that need it.
((access syntax-files! (->environment '(COMPILER))))
-(sf-conditionally "make")
+(sf-conditionally "machine/make")
;; Rebuild the package constructors and cref.
(cref/generate-constructors "compiler" 'ALL)
\ No newline at end of file
(declare (usual-integrations))
+;; The (cross-reference) package is needed when loading the compiler's
+;; package set.
+(load-option 'CREF)
+
(let ((value ((load "base/make") "svm1")))
(set! (access compiler:compress-top-level? (->environment '(compiler))) #t)
((access init-assembler-instructions! (->environment '(compiler assembler))))
run_cmd_in_dir star-parser "${@}" --batch-mode --load compile.scm </dev/null
FASL=make.com
-# Dump prerequisites into x-runtime.com.
+# Dump new runtime into x-runtime.com.
run_cmd_in_dir runtime \
"${@}" --batch-mode --library ../lib --fasl $FASL <<EOF
(disk-save "../lib/x-runtime.com")
(load-option 'SF)
(load-option 'CREF)
(load-option '*PARSER)
-;;(load-option 'COMPILER)
-;; The above fails! Unable to find package directory: "compiler"
-(with-working-directory-pathname "compiler"
- (lambda () (load "machine/make")))
+(load-option 'COMPILER)
(disk-save "lib/x-compiler.com")
EOF
# Remove host code to STAGEX/ subdirs.
run_cmd ./Stage.sh make X
-# Dodge incompatibility between 9.0.1 and master.
-run_cmd_in_dir runtime mv os2winp.ext os2winp.bin STAGEX
# Restore previously cross-compiled code (if any). (Replace "unmake"
# with "remove" to start from scratch with each rebuilt