This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,17 @@
(rule (with-stdout-to bytecodeonly.ml (echo "")))
(rule (with-stdout-to nativeonly.ml (echo "")))
(rule (with-stdout-to byteandnative.ml (echo "")))
(executable
(name byteandnative)
(modules byteandnative))
(executable
(name bytecodeonly)
(modules bytecodeonly)
(modes byte))
(executable
(name nativeonly)
(modules nativeonly)
(modes native))

View file

@ -0,0 +1,7 @@
Generates targets when modes is set for binaries:
$ dune build --display short @all 2>&1 | grep '\.bc\|\.exe'
ocamlc byteandnative.bc
ocamlc bytecodeonly.bc
ocamlc bytecodeonly.exe
ocamlopt byteandnative.exe
ocamlopt nativeonly.exe