This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
11
unikernel/duniverse/bigstringaf/lib/config/discover.ml
Normal file
11
unikernel/duniverse/bigstringaf/lib/config/discover.ml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
open Configurator.V1
|
||||
|
||||
let get_warning_flags t =
|
||||
match ocaml_config_var t "ccomp_type" with
|
||||
| Some "msvc" -> ["/Wall"; "/W3"]
|
||||
| _ -> ["-Wall"; "-Wextra"; "-Wpedantic"]
|
||||
|
||||
let () =
|
||||
main ~name:"discover" (fun t ->
|
||||
let wflags = get_warning_flags t in
|
||||
Flags.write_sexp "cflags.sexp" wflags)
|
||||
3
unikernel/duniverse/bigstringaf/lib/config/dune
Normal file
3
unikernel/duniverse/bigstringaf/lib/config/dune
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(executable
|
||||
(name discover)
|
||||
(libraries dune-configurator))
|
||||
Loading…
Add table
Add a link
Reference in a new issue