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