| 1 |
Compilation using WasmOO |
| 2 |
|
| 3 |
$ dune build bin/technologic.bc.wasm.js @install |
| 4 |
$ dune trace cat | jq -r 'include "dune"; |
| 5 |
> processes |
| 6 |
> | select(.args.prog | test("wasm_of_ocaml$")) |
| 7 |
> | .args | targets | .[] | sub("^_build/[^/]+/"; "")' | sort |
| 8 |
.js/default/js_of_ocaml-compiler.runtime/jsoo_runtime.wasma |
| 9 |
.js/default/js_of_ocaml/js_of_ocaml.wasma |
| 10 |
.js/default/stdlib/std_exit.wasmo |
| 11 |
.js/default/stdlib/stdlib.wasma |
| 12 |
bin/.technologic.eobjs/jsoo/dune__exe.wasmo |
| 13 |
bin/.technologic.eobjs/jsoo/dune__exe__Technologic.wasmo |
| 14 |
bin/.technologic.eobjs/jsoo/dune__exe__Z.wasmo |
| 15 |
bin/.technologic.eobjs/jsoo/runtime.bc.runtime.wasma |
| 16 |
bin/technologic.bc.wasm.assets |
| 17 |
bin/technologic.bc.wasm.js |
| 18 |
lib/.x.objs/jsoo/default/x.wasma |
| 19 |
$ node ./_build/default/bin/technologic.bc.wasm.js |
| 20 |
buy it |
| 21 |
use it |
| 22 |
break it |
| 23 |
fix it |
| 24 |
$ dune build bin/technologic.bc.wasm.js @install --profile release |
| 25 |
$ node ./_build/default/bin/technologic.bc.wasm.js |
| 26 |
buy it |
| 27 |
use it |
| 28 |
break it |
| 29 |
fix it |
| 30 |
$ cat >dune-workspace <<EOF |
| 31 |
> (lang dune 3.17) |
| 32 |
> (context |
| 33 |
> (default (disable_dynamically_linked_foreign_archives true))) |
| 34 |
> EOF |
| 35 |
$ dune build bin/technologic.bc.wasm.js @install --profile dev |
| 36 |
$ dune build bin/technologic.bc.wasm.js @install --profile release |