mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-21 22:59:16 +02:00
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:
parent
05d65b15b0
commit
f849a739af
1 changed files with 4 additions and 2 deletions
|
@ -279,8 +279,10 @@
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (lib-dep)
|
(lambda (lib-dep)
|
||||||
(when (recompile? lib-dep append-dirs prepend-dirs)
|
(when (recompile? lib-dep append-dirs prepend-dirs)
|
||||||
(system (string-append "cyclone "
|
(let ((result (system (string-append "cyclone "
|
||||||
(lib:import->filename lib-dep ".sld" append-dirs prepend-dirs)))))
|
(lib:import->filename lib-dep ".sld" append-dirs prepend-dirs)))))
|
||||||
|
(when (> result 0)
|
||||||
|
(error "Unable to compile library" lib-dep)))))
|
||||||
lib-deps))
|
lib-deps))
|
||||||
|
|
||||||
;; Validate syntax of basic forms
|
;; Validate syntax of basic forms
|
||||||
|
|
Loading…
Add table
Reference in a new issue