Dune: changing `js_of_ocaml link` flags

By default in the dev profile, dune runs js_of_ocaml link with the --source-map-inline flag. I want to disable this, but I can’t seem to find a way to change the flags sent to link (just the main compilation step).

This isn’t a problem in release mode because only a single compilation step is used, but I would prefer not to have to build with the release profile every time if possible.

Is there a way to change the flags passed to the link stage of js_of_ocaml?

This issue might be relevant: dune/issues/1613

Have you tried the following [1] (untested) configuration ?

 (js_of_ocaml (flags :standard \ --source-map-inline)))

Where :standard \ --source-map-inline means "the default set of flags minus --source-map-inline" in the ordered set language.

[1] Stanza reference — dune documentation

@vds Unfortunately that doesn’t seem to fix it. It still only modifies the build step flags.

Thanks for the suggestion, though!

I opened this issue on the dune repo to track this: `js_of_ocaml`: ability to specify `link` step flags · Issue #5296 · ocaml/dune · GitHub