mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 09:17:35 +02:00
More intelligent calling of subprocess for compiling library dependencies
This commit is contained in:
parent
fa58b9d538
commit
ad64f7a3ab
1 changed files with 7 additions and 1 deletions
|
@ -79,6 +79,11 @@
|
||||||
Cyc_check_str(data, filename);
|
Cyc_check_str(data, filename);
|
||||||
double_value(&box) = Cyc_file_last_modified_time(string_str(filename));
|
double_value(&box) = Cyc_file_last_modified_time(string_str(filename));
|
||||||
return_closcall1(data, k, &box); ")
|
return_closcall1(data, k, &box); ")
|
||||||
|
|
||||||
|
(define-c calling-program
|
||||||
|
"(void *data, int argc, closure _, object k)"
|
||||||
|
" make_utf8_string(data, s, _cyc_argv[0]);
|
||||||
|
return_closcall1(data, k, &s); ")
|
||||||
;; END batch compilation
|
;; END batch compilation
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
@ -287,7 +292,8 @@
|
||||||
(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)
|
||||||
(let ((result (system (string-append "cyclone "
|
(let ((result (system (string-append
|
||||||
|
(calling-program) " "
|
||||||
(lib:import->filename lib-dep ".sld" append-dirs prepend-dirs)))))
|
(lib:import->filename lib-dep ".sld" append-dirs prepend-dirs)))))
|
||||||
(when (> result 0)
|
(when (> result 0)
|
||||||
(error "Unable to compile library" lib-dep)))))
|
(error "Unable to compile library" lib-dep)))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue