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

View file

@ -0,0 +1,10 @@
(library
(name byteonly)
(modes byte))
(library
(name nativeonly)
(modes native))
(library
(name byteandnative))

View file

@ -0,0 +1,9 @@
Generate targets when modes are set for libraries
$ dune build --display short @all 2>&1 | grep 'cma\|cmxa\|cmxs'
ocamlc byteandnative.cma
ocamlc byteonly.cma
ocamlopt byteandnative.{a,cmxa}
ocamlopt nativeonly.{a,cmxa}
ocamlopt byteandnative.cmxs
ocamlopt nativeonly.cmxs