This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
(executable
|
||||
(name print_version)
|
||||
(modes exe byte)
|
||||
(libraries build_info))
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
let () =
|
||||
(match Build_info.Build_info_data.version with
|
||||
| None -> print_endline "<version missing>"
|
||||
| Some version -> print_endline version)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(executable
|
||||
(name toto)
|
||||
(modes exe byte)
|
||||
(public_name toto))
|
||||
|
|
@ -0,0 +1 @@
|
|||
print_endline "Hello, world!"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
(* The implementation of this module is generated by dune when linking an
|
||||
executable *)
|
||||
val version : string option
|
||||
|
||||
val statically_linked_libraries : (string * string option) list
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
(library
|
||||
(name build_info)
|
||||
(modules_without_implementation build_info_data)
|
||||
(special_builtin_support
|
||||
(build_info
|
||||
(data_module build_info_data)
|
||||
(api_version 1))))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 2.0)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(executable
|
||||
(name foo)
|
||||
(modes native))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
export PATH="$ORIG_PATH"
|
||||
exec ocamlc "$@"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
export PATH="$ORIG_PATH"
|
||||
exec ocamldep "$@"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
export PATH="$ORIG_PATH"
|
||||
exec ocamlmklib "$@"
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
$ env ORIG_PATH="$PATH" PATH="$PWD/ocaml-bin:$PATH" dune build @all
|
||||
|
||||
$ _build/default/bin-with-build-info/print_version.exe
|
||||
<version missing>
|
||||
|
||||
Check that building a native only executable fails
|
||||
$ env ORIG_PATH="$PATH" PATH="$PWD/ocaml-bin:$PATH" dune build native-only/foo.exe
|
||||
Error: Don't know how to build native-only/foo.exe
|
||||
[1]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(library
|
||||
(name foo)
|
||||
(public_name foo))
|
||||
|
|
@ -0,0 +1 @@
|
|||
let x = 42
|
||||
Loading…
Add table
Add a link
Reference in a new issue