mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Use a separate thread to emit the C file
This commit is contained in:
parent
08c4e8f2e6
commit
50631b8bb5
1 changed files with 9 additions and 5 deletions
14
cyclone.scm
14
cyclone.scm
|
@ -21,7 +21,8 @@
|
|||
(scheme cyclone primitives)
|
||||
(scheme cyclone transforms)
|
||||
(scheme cyclone cps-optimizations)
|
||||
(scheme cyclone libraries))
|
||||
(scheme cyclone libraries)
|
||||
(srfi 18))
|
||||
|
||||
(define *fe:batch-compile* #t) ;; Batch compilation. TODO: default to false or true??
|
||||
(define *optimization-level* 2) ;; Default level
|
||||
|
@ -1125,10 +1126,13 @@ Debug options:
|
|||
(cdr err))
|
||||
(newline)
|
||||
(exit 1)))
|
||||
(run-compiler non-opts append-dirs prepend-dirs)
|
||||
(run-external-compiler non-opts compile? append-dirs prepend-dirs
|
||||
cc-prog cc-exec cc-lib cc-so
|
||||
cc-opts cc-linker-opts cc-linker-extra-objects)
|
||||
(let ((t (thread-start!
|
||||
(make-thread (lambda () (run-compiler non-opts append-dirs prepend-dirs))))))
|
||||
(thread-join! t)
|
||||
(run-external-compiler
|
||||
non-opts compile? append-dirs prepend-dirs
|
||||
cc-prog cc-exec cc-lib cc-so
|
||||
cc-opts cc-linker-opts cc-linker-extra-objects))
|
||||
|
||||
))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue