Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coventry opened this issue Jul 10, 2018 · 1 comment

Comments

@coventry
Copy link

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.

@vouillon
Copy link
Member

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants