about summary refs log tree commit diff
path: root/nix/buildLisp
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-01-08T17·53+0000
committerVincent Ambo <tazjin@google.com>2020-01-08T17·53+0000
commit1297afec4b5d4d343b055e48e0e6961377054ebc (patch)
tree0b19f1bd959bf0a76194fbf9e52dcf666a2264e2 /nix/buildLisp
parent894c23510b8a55897cd24d5d85a09a7ed0b4dfac (diff)
fix(buildLisp): Fail the build on compilation errors r/345
This needs to be handled explicitly in the COMPILE-FILE form.
Diffstat (limited to 'nix/buildLisp')
-rw-r--r--nix/buildLisp/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix
index 69fcb44ed9..5a2b7853dc 100644
--- a/nix/buildLisp/default.nix
+++ b/nix/buildLisp/default.nix
@@ -27,7 +27,10 @@ let
                                       :directory (or (sb-posix:getenv "NIX_BUILD_TOP")
                                                      (error "not running in a Nix build"))
                                       :defaults srcfile)))
-          (compile-file srcfile :output-file outfile)))
+          (multiple-value-bind (_outfile _warnings-p failure-p)
+              (compile-file srcfile :output-file outfile)
+            (when failure-p
+              (sb-posix:exit 1)))))
 
       (let ((*compile-verbose* t)
             ;; FASL files are compiled into the working directory of the