mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Pass lib args to cgen
This commit is contained in:
parent
87e175b542
commit
cd45021b2b
2 changed files with 2 additions and 6 deletions
2
cgen.scm
2
cgen.scm
|
@ -937,7 +937,7 @@
|
|||
"}\n"))
|
||||
formals*))))
|
||||
|
||||
(define (mta:code-gen input-program globals)
|
||||
(define (mta:code-gen input-program globals program? lib-exports lib-imports)
|
||||
(set! *global-syms* globals)
|
||||
(let ((compiled-program
|
||||
(apply string-append
|
||||
|
|
|
@ -168,11 +168,7 @@
|
|||
(exit)))
|
||||
|
||||
(trace:info "---------------- C code:")
|
||||
(mta:code-gen input-program globals)
|
||||
; TODO: add as parameters above?
|
||||
; (set! program? #f)
|
||||
; (set! lib-exports (lib:exports (car input-program)))
|
||||
; (set! lib-imports (lib:imports (car input-program)))
|
||||
(mta:code-gen input-program globals program? lib-exports lib-imports)
|
||||
(return '())))) ;; No codes to return
|
||||
|
||||
;; TODO: longer-term, will be used to find where cyclone's data is installed
|
||||
|
|
Loading…
Add table
Reference in a new issue