fix(buildLisp): Fail the build on compilation errors
This needs to be handled explicitly in the COMPILE-FILE form.
This commit is contained in:
parent
894c23510b
commit
1297afec4b
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ let
|
||||||
:directory (or (sb-posix:getenv "NIX_BUILD_TOP")
|
:directory (or (sb-posix:getenv "NIX_BUILD_TOP")
|
||||||
(error "not running in a Nix build"))
|
(error "not running in a Nix build"))
|
||||||
:defaults srcfile)))
|
: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)
|
(let ((*compile-verbose* t)
|
||||||
;; FASL files are compiled into the working directory of the
|
;; FASL files are compiled into the working directory of the
|
||||||
|
|
Loading…
Reference in a new issue