eliom
eliom copied to clipboard
Advertised js_of_eliom debug options are passed to ocamlc, which doesn't know them
Thanks to @Drup's help on #ocaml, I don't need to fix this, now, but he recommended reporting it as bug.
The js_of_eliom --help output reports on options --pretty --no-inline --debug-info --source-map, but it seems these arguments are passed to ocamlc, which doesn't know them.
$ js_of_eliom --pretty -o a.out
ocamlc.opt: unknown option '--pretty'.
Usage: ocamlc <options> <files>
Options are: <snip>
(Same thing with -pretty, etc.)
This was causing me problems because I was trying to pass these options directly. However, using make DEBUG=yes seems to work well.
You need to use -jsopt to pass arguments to js_of_ocaml:
js_of_eliom -jsopt --pretty -o /tmp/a.out