Skip to content

Commit

Permalink
Merge pull request #126 from fare-patches/master
Browse files Browse the repository at this point in the history
Better verbosity control for in-optimizer
  • Loading branch information
guicho271828 committed Apr 3, 2021
2 parents 0d5ed6c + c7e76a5 commit 6963780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion level2/impl.lisp
Expand Up @@ -285,7 +285,7 @@ The default value of &optional arguments are '_, instead of nil."
(defmacro in-optimizer (name &optional verbose)
`(eval-when (:compile-toplevel :load-toplevel :execute)
,@(when verbose
`((format *trace-output* "~&Switching to the ~A optimizer~%" ',name)))
`((when ,verbose (format *trace-output* "~&Switching to the ~A optimizer~%" ',name))))
(setf *optimizer* ',name)))

(defmacro defoptimizer (name args &body body)
Expand Down
2 changes: 1 addition & 1 deletion trivia.asd
Expand Up @@ -6,5 +6,5 @@
:mailto "guicho2.71828@gmail.com"
:license "LLGPL"
:depends-on ("trivia.balland2006")
:perform (load-op :after (o c) (eval (read-from-string "(trivia:in-optimizer :balland2006 t)")))
:perform (load-op :after (o c) (eval (read-from-string "(trivia:in-optimizer :balland2006 asdf:*asdf-verbose*)")))
:in-order-to ((test-op (test-op "trivia.test"))))

0 comments on commit 6963780

Please sign in to comment.