Wasm_of_ocaml support
In general the code looks really good to me. Awaiting for approval from Hugo. Also don't forget to:
- Add some tests
- Update the CHANGES entry
- Add something to the manual
The dune lang constraint will need to be updated to 3.11.0 (dune.3.10) as been released alrady)
@hhugo do you want this to be ready for 3.11?
I think this can wait.
I'm wondering whether this should work likemodes. It makes a lot of sense to be able to generate both JavaScript and Wasm code.
I found out that adding (targets wasm) in the (js_of_ocaml ...) stanza of an executable doesn’t work, only modifying environments seems possible. Wouldn’t it be good to be able to specify the wasm target for executables too?
Superseded by #10695