Hello.
I’d like to add (modes (byte exe)) to (executable) section of “dune” file if an environment variable is set or command line argument is provided.
However I couldn’t find anything related in the dune manual. Is it even possible?
dune knows about both types of executable without the need to change (modes): you can run dune build path/to/my_executable.bc to build a bytecode version (where you would put dune build path/to/my_executable.exe).
Unfortunately that doesn’t work for me. I get “Error: Don’t know how to build path/to/my_executable.byte” while “dune build path/to/my_executable.exe” is built successfully.