mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +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
|
||||
(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
|
||||
|
|
Loading…
Add table
Reference in a new issue