[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 87/99: Create stub module forms for dependecies
From: |
Christopher Allan Webber |
Subject: |
[Guile-commits] 87/99: Create stub module forms for dependecies |
Date: |
Sun, 10 Oct 2021 21:51:12 -0400 (EDT) |
cwebber pushed a commit to branch compile-to-js-merge
in repository guile.
commit 11378b73df276609ec950c4225b0ef526201e73f
Author: Ian Price <ianprice90@googlemail.com>
AuthorDate: Mon Aug 28 13:43:01 2017 +0100
Create stub module forms for dependecies
* module/scripts/jslink.scm: Module files need a module form, or
functions like resolve-module won't work correctly.
---
module/scripts/jslink.scm | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/module/scripts/jslink.scm b/module/scripts/jslink.scm
index 890c172..d5cdcef 100644
--- a/module/scripts/jslink.scm
+++ b/module/scripts/jslink.scm
@@ -1,6 +1,7 @@
(define-module (scripts jslink)
#:use-module (system base compile)
#:use-module (system base language)
+ #:use-module (language javascript)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-37)
#:use-module (ice-9 format)
@@ -20,9 +21,9 @@
(define boot-dependencies
'(("ice-9/posix" . #f)
- ("ice-9/ports" . #f)
- ("ice-9/threads" . #f)
- ("srfi/srfi-4" . #f)
+ ("ice-9/ports" . (ice-9 ports))
+ ("ice-9/threads" . (ice-9 threads))
+ ("srfi/srfi-4" . (srfi srfi-4))
("ice-9/deprecated" . #t)
("ice-9/boot-9" . #t)
@@ -137,6 +138,11 @@ Report bugs to <~A>.~%"
(format #t "boot_modules[~s] =\n" path)
(cond ((string? file)
(compile-dependency file))
+ ((list? file)
+ (print-statement (compile `(define-module ,file)
+ #:from 'scheme #:to 'javascript)
+ (current-output-port))
+ (newline))
(file (compile-dependency (%search-load-path path)))
(else
(format #t "function (cont) { return cont(scheme.UNDEFINED); };")))
- [Guile-commits] 56/99: Implement builtin list procedures., (continued)
- [Guile-commits] 56/99: Implement builtin list procedures., Christopher Allan Webber, 2021/10/10
- [Guile-commits] 58/99: Implement built-in symbol procedures., Christopher Allan Webber, 2021/10/10
- [Guile-commits] 64/99: Implement procedure built-ins., Christopher Allan Webber, 2021/10/10
- [Guile-commits] 65/99: Implement module built-ins., Christopher Allan Webber, 2021/10/10
- [Guile-commits] 72/99: Implement basic `equal?' implementation, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 68/99: struct-set! primitive returns no values, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 71/99: modules should be passed current continuation, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 79/99: Implement list builtins, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 80/99: *features* is an empty list, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 84/99: Add assignment js-type to (language javascript), Christopher Allan Webber, 2021/10/10
- [Guile-commits] 87/99: Create stub module forms for dependecies,
Christopher Allan Webber <=
- [Guile-commits] 97/99: Switch use of $closure to $const-fun, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 22/99: Add more Scheme Primitives to runtime.js, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 32/99: Rewrite js-il inliner, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 82/99: pop-fluid uses field of frame not fluid, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 85/99: Handle more JavaScript binary operators, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 86/99: Keywords cannot be both keyword and optional, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 91/99: Update Copyright Headers, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 94/99: Add compiler-chooser for CPS spec, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 96/99: Fix cps's choose-compiler to be able to compile javascript, Christopher Allan Webber, 2021/10/10
- [Guile-commits] 98/99: Merge branch 'main' into compile-to-js-merge, Christopher Allan Webber, 2021/10/10