Skip to content
Snippets Groups Projects
Commit 3d7dd92c authored by wlott's avatar wlott
Browse files

Bind *byte-compiling* to T and print ``Byte Compiling'' when we are byte

compiling.
parent a011e6b4
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/main.lisp,v 1.65 1992/07/11 02:11:20 wlott Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/main.lisp,v 1.66 1992/07/22 22:48:08 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -44,6 +44,9 @@ ...@@ -44,6 +44,9 @@
(defvar *byte-compile* :maybe (defvar *byte-compile* :maybe
"Whether or not to use the byte-compiler. Can be T, NIL, or :MAYBE") "Whether or not to use the byte-compiler. Can be T, NIL, or :MAYBE")
(defvar *byte-compiling* nil
"Bound by COMPILE-COMPONENT to T when byte-compiling, and NIL when
native compiling.")
(defvar compiler-version "1.0") (defvar compiler-version "1.0")
(pushnew :python *features*) (pushnew :python *features*)
...@@ -329,9 +332,18 @@ ...@@ -329,9 +332,18 @@
;;; COMPILE-COMPONENT -- internal. ;;; COMPILE-COMPONENT -- internal.
;;; ;;;
(defun compile-component (component) (defun compile-component (component)
(let ((*compile-component* component)) (let* ((*compile-component* component)
(*byte-compiling*
(ecase *byte-compile*
((t) t)
((nil) nil)
(:maybe
;; ### Need some heuristic
nil))))
(when *compile-print* (when *compile-print*
(compiler-mumble "~&Compiling ~A: " (component-name component))) (compiler-mumble "~&~:[~;Byte ~]Compiling ~A: "
*byte-compiling*
(component-name component)))
(ir1-phases component) (ir1-phases component)
...@@ -346,10 +358,7 @@ ...@@ -346,10 +358,7 @@
(environment-analyze component) (environment-analyze component)
(dfo-as-needed component) (dfo-as-needed component)
(if (ecase *byte-compile* (if *byte-compiling*
((t) t)
((nil) nil)
(:maybe nil))
(byte-compile-component component) (byte-compile-component component)
(native-compile-component component))) (native-compile-component component)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment