chiark / gitweb /
src/frontend.lisp: Report an error if no output types are requested.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 21 Oct 2015 23:46:28 +0000 (00:46 +0100)
committerMark 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

index 0336d1ade577b3f5433beb35d14afb32067ba19c..f1694ab9891d760dcdd6541e80571feb8c1d80fc 100644 (file)
@@ -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