1
Fork 0
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:
Christopher Lemmer Webber 2021-05-11 10:37:10 -04:00
parent 7e2f526e4d
commit 280312a9c3
No known key found for this signature in database
GPG key ID: 4BC025925FF8F4D3

View file

@ -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"