Raise an error if library compilation fails

If a program tries to build a dependent library and the compilation fails, we need to know about it
This commit is contained in:
Justin Ethier 2020-09-23 12:21:56 -04:00
parent 05d65b15b0
commit f849a739af

View file

@ -279,8 +279,10 @@
(for-each
(lambda (lib-dep)
(when (recompile? lib-dep append-dirs prepend-dirs)
(system (string-append "cyclone "
(lib:import->filename lib-dep ".sld" append-dirs prepend-dirs)))))
(let ((result (system (string-append "cyclone "
(lib:import->filename lib-dep ".sld" append-dirs prepend-dirs)))))
(when (> result 0)
(error "Unable to compile library" lib-dep)))))
lib-deps))
;; Validate syntax of basic forms