From 65d7091b894b40e4249f0bdede2526ec8fa6e513 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 30 Aug 2015 10:58:38 +0100 Subject: [PATCH] src/frontend.lisp: Prepare the builtin module at load time. This is better because load time happens before the image is dumped. Also, remove some pointless `clear-the-decks' calls. --- src/frontend.lisp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend.lisp b/src/frontend.lisp index d394eee..e293f29 100644 --- a/src/frontend.lisp +++ b/src/frontend.lisp @@ -30,6 +30,11 @@ (cl:in-package #:sod-frontend) ;;;-------------------------------------------------------------------------- +;;; Preparation for dumping. + +(make-builtin-module) + +;;;-------------------------------------------------------------------------- ;;; The main program. (eval-when (:compile-toplevel :load-toplevel :execute) @@ -110,9 +115,6 @@ (or builtinsp args)) (die-usage)) - ;; Prepare the builtins. - (make-builtin-module) - ;; Do the main parsing job. (multiple-value-bind (hunoz nerror nwarn) (count-and-report-errors () @@ -169,12 +171,10 @@ ;; If we're writing the builtin module then now seems like a ;; good time to do that. (when builtinsp - (clear-the-decks) (hack-module *builtin-module*)) ;; Parse and write out the remaining modules. (dolist (arg args) - (clear-the-decks) (hack-module (read-module arg)))))) ;; Report on how well everything worked. -- 2.11.0