aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-05-07 19:41:44 +0000
committerdos-reis <gdr@axiomatics.org>2010-05-07 19:41:44 +0000
commit75e606946370e97837e697e5f5070ddff4627952 (patch)
tree6a51f09fc2c32104ddb7eb328cc2270045f0b5bc /src/boot
parentc9c4d89aa7cc261a19ac29c7d74a43f1369f1773 (diff)
downloadopen-axiom-75e606946370e97837e697e5f5070ddff4627952.tar.gz
* configure.ac.pamphlet: Add new option: --enable-int-file-retention.
src/ * lisp/core.lisp.in ($FilesToRetain): New. Export. * lisp/Makefile.in: Tidy. * boot/translator.boot (retainFile?): New. (compileBootHandler): Use it.
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/initial-env.lisp2
-rw-r--r--src/boot/translator.boot10
2 files changed, 10 insertions, 2 deletions
diff --git a/src/boot/initial-env.lisp b/src/boot/initial-env.lisp
index dd67e0c4..34a4efc4 100644
--- a/src/boot/initial-env.lisp
+++ b/src/boot/initial-env.lisp
@@ -1,6 +1,6 @@
;; Copyright (c) 1991-2002, The Numerical Algorithms Group Ltd.
;; All rights reserved.
-;; Copyright (C) 2007-2009, Gabriel Dos Reis.
+;; Copyright (C) 2007-2010, Gabriel Dos Reis.
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without
diff --git a/src/boot/translator.boot b/src/boot/translator.boot
index ebedbe56..ff996f23 100644
--- a/src/boot/translator.boot
+++ b/src/boot/translator.boot
@@ -745,12 +745,20 @@ translateBootFile(progname, options, file) ==
outFile := getOutputPathname options or defaultBootToLispFile file
BOOTTOCL(file, ENOUGH_-NAMESTRING outFile)
+retainFile? ext ==
+ Option 'all in $FilesToRetain or Option 'yes in $FilesToRetain => true
+ Option 'no in $FilesToRetain => false
+ Option ext in $FilesToRetain
+
+TRACE retainFile?
+
compileBootHandler(progname, options, file) ==
intFile := BOOTTOCL(file, getIntermediateLispFile(file,options))
errorCount() ~= 0 => nil
intFile =>
objFile := compileLispHandler(progname, options, intFile)
- DELETE_-FILE intFile
+ if not retainFile? 'lisp then
+ DELETE_-FILE intFile
objFile
nil