abort failed builds instead of soldiering on
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 28 Apr 2013 13:37:03 +0000 (16:37 +0300)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 28 Apr 2013 13:37:03 +0000 (16:37 +0300)
jscl.lisp

index 51a6ba6..6350f7c 100644 (file)
--- a/jscl.lisp
+++ b/jscl.lisp
 (with-compilation-unit ()
   (dolist (input *source*)
     (when (member (cadr input) '(:host :both))
-      (compile-file (source-pathname (car input))))))
+      (let ((fname (source-pathname (car input))))
+        (multiple-value-bind (fasl warn fail) (compile-file fname)
+          (declare (ignore fasl warn))
+          (when fail
+            (error "Compilation of ~A failed." fname)))))))
 
 ;;; Load jscl into the host
 (dolist (input *source*)