eliom icon indicating copy to clipboard operation
eliom copied to clipboard

Advertised js_of_eliom debug options are passed to ocamlc, which doesn't know them

Open coventry opened this issue 7 years ago • 1 comments

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.

coventry avatar Jul 10 '18 18:07 coventry

You need to use -jsopt to pass arguments to js_of_ocaml:

js_of_eliom -jsopt --pretty -o /tmp/a.out

vouillon avatar Aug 16 '18 09:08 vouillon