mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Issue #481 - Exit if scm->c compilation fails
This commit is contained in:
parent
bb861334f6
commit
67384621bc
1 changed files with 5 additions and 4 deletions
|
@ -1142,10 +1142,11 @@ Debug options:
|
|||
;; Normal path is to run another instance of cyclone to generate
|
||||
;; the .C file. This lets us immediately free those resources once
|
||||
;; the Scheme compilation is done.
|
||||
(system
|
||||
(string-append
|
||||
(calling-program) " -run-scm-compiler "
|
||||
(string-join args " ")))))
|
||||
(when (not (zero? (system
|
||||
(string-append
|
||||
(calling-program) " -run-scm-compiler "
|
||||
(string-join args " ")))))
|
||||
(exit 1))))
|
||||
;; Call the C compiler
|
||||
(run-external-compiler
|
||||
non-opts append-dirs prepend-dirs
|
||||
|
|
Loading…
Add table
Reference in a new issue