mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Fix cps's choose-compiler to be able to compile javascript
* module/language/cps/spec.scm (choose-compiler): Fix to be able to recognize js-il and javascript as targets to compile to
This commit is contained in:
parent
7e2f526e4d
commit
280312a9c3
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@
|
|||
exp port))
|
||||
|
||||
(define (choose-compiler target optimization-level opts)
|
||||
(cons 'bytecode compile-bytecode))
|
||||
(match (language-name target)
|
||||
['bytecode
|
||||
(cons 'bytecode compile-bytecode)]
|
||||
[(or 'js-il 'javascript)
|
||||
(cons 'js-il compile-js)]))
|
||||
|
||||
(define-language cps
|
||||
#:title "CPS Intermediate Language"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue