mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 04:10:18 +02:00
Add compiler-chooser for CPS spec
However, it probably isn't correct. Right now it just always chooses "bytecode"... how to get it to correctly/intelligently choose the right path? * module/language/cps/spec.scm (choose-compiler): New variable. (cps): Add it as #:compiler-chooser target.
This commit is contained in:
parent
2e0cfecc6d
commit
a23bf2a4d9
1 changed files with 5 additions and 1 deletions
|
@ -44,6 +44,9 @@
|
|||
port)
|
||||
exp port))
|
||||
|
||||
(define (choose-compiler target optimization-level opts)
|
||||
(cons 'bytecode compile-bytecode))
|
||||
|
||||
(define-language cps
|
||||
#:title "CPS Intermediate Language"
|
||||
#:reader read-cps
|
||||
|
@ -51,4 +54,5 @@
|
|||
#:compilers `((bytecode . ,compile-bytecode)
|
||||
(js-il . ,compile-js))
|
||||
#:for-humans? #f
|
||||
#:lowerer make-cps-lowerer)
|
||||
#:lowerer make-cps-lowerer
|
||||
#:compiler-chooser choose-compiler)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue