-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align Js_runtime build and Assemblyscript_runtime build.
- Loading branch information
Showing
11 changed files
with
52 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let string = Stringified.runtime | ||
|
||
let wasm_ast = | ||
lazy ( | ||
let open Wasm in | ||
let m = Decode.decode "runtime.wasm" string in | ||
let () = Valid.check_module m in | ||
m | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(tests | ||
(names force_wasm_ast) | ||
(libraries coq-qcert.assemblyscript)) | ||
(libraries coq-qcert.runtime.assemblyscript)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
let _ = Lazy.force Assemblyscript.Runtime.wasm_ast | ||
let _ = Lazy.force Assemblyscript_runtime.wasm_ast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
qcert-runtime.js | ||
qcert_runtime.ml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
(library | ||
(name js_runtime) | ||
(public_name coq-qcert.runtime.js)) | ||
|
||
(rule ; We promote to source dir because this file is also used from nodejs. | ||
(target qcert-runtime.js) | ||
(mode promote) | ||
(deps | ||
qcert-runtime-core.js | ||
qcert-runtime-tostring.js | ||
qcert-runtime-sql-date.js | ||
qcert-runtime-uri.js) | ||
(action | ||
(with-stdout-to | ||
qcert-runtime.js | ||
(progn (echo "/* include: qcert-runtime-core.js */\n\n") | ||
(cat qcert-runtime-core.js) | ||
(echo "/* include: qcert-runtime-tostring.js */\n\n") | ||
(cat qcert-runtime-tostring.js) | ||
(echo "/* include: qcert-runtime-sql-date.js */\n\n") | ||
(cat qcert-runtime-sql-date.js) | ||
(echo "/* include: qcert-runtime-uri */\n\n") | ||
(cat qcert-runtime-uri.js))))) | ||
|
||
(rule | ||
(target js_runtime.ml) | ||
(deps qcert-runtime.js) | ||
(action | ||
(with-stdout-to | ||
js_runtime.ml | ||
(progn (echo "let runtime = {|\n") | ||
(cat qcert-runtime.js) | ||
(echo "|}\n"))))) |