Closed vouillon closed 6 days ago
Looks good. Maybe add a test for inline_tests as well
The compilation_mode
option is only in executables
stanzas, while inline tests are only for libraries. So this PR does not actually make any change for inline tests. And we already test whole program compilation for inline tests:
https://github.com/ocaml/dune/blob/967f566c36425560b2327b25e5e69f4f48a790a5/test/blackbox-tests/test-cases/jsoo/inline-tests.t/run.t#L18
We need to take into account the executable stanza to see whether we need to build a
.bc-for-jsoo
file.