chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1db50cb
)
src/frontend.lisp: Report an error if no output types are requested.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 21 Oct 2015 23:46:28 +0000
(
00:46
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 7 Nov 2015 14:14:23 +0000
(14:14 +0000)
Silently not doing anything is sort of unhelpful.
src/frontend.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/frontend.lisp
b/src/frontend.lisp
index 0336d1ade577b3f5433beb35d14afb32067ba19c..f1694ab9891d760dcdd6541e80571feb8c1d80fc 100644
(file)
--- a/
src/frontend.lisp
+++ b/
src/frontend.lisp
@@
-169,6
+169,10
@@
(define-program
reason))
nil)))))
+ ;; If there are no output types then there's nothing to do.
+ (unless output-reasons
+ (error "No output types given: nothing to do"))
+
;; If we're writing the builtin module then now seems like a
;; good time to do that.
(when builtinsp