From 1297afec4b5d4d343b055e48e0e6961377054ebc Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 8 Jan 2020 17:53:06 +0000 Subject: [PATCH] fix(buildLisp): Fail the build on compilation errors This needs to be handled explicitly in the COMPILE-FILE form. --- nix/buildLisp/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/buildLisp/default.nix b/nix/buildLisp/default.nix index 69fcb44ed..5a2b7853d 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