Skip to content
Snippets Groups Projects
Commit 9bd8bac6 authored by ram's avatar ram
Browse files

Add :CONSERVATIVE option to BYTE-COMPILING. Also, always return T when

:BYTE-COMPILE T was specified.
parent 6a14610a
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.101 1994/02/10 23:20:53 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/main.lisp,v 1.102 1994/02/11 15:09:39 ram Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -351,11 +351,14 @@ ...@@ -351,11 +351,14 @@
;;; ;;;
;;; Return our best guess for whether we will byte compile code currently ;;; Return our best guess for whether we will byte compile code currently
;;; being IR1 converted. Only a guess because the decision is made on a ;;; being IR1 converted. Only a guess because the decision is made on a
;;; per-component basis. ;;; per-component basis. If :CONSERVATIVE is true, return T if there is any
;;; doubt.
;;; ;;;
(defun byte-compiling () (defun byte-compiling (&key conservative)
(if (eq *byte-compiling* :maybe) (if (eq *byte-compiling* :maybe)
(policy nil (zerop speed) (<= debug 1)) (or conservative
(eq *byte-compile* t)
(policy nil (zerop speed) (<= debug 1)))
(and *byte-compile* *byte-compiling*))) (and *byte-compile* *byte-compiling*)))
......
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