mte/unikernel/duniverse/mirage-crypto/rng/unix/discover.ml
2025-11-11 02:07:51 +01:00

10 lines
248 B
OCaml

let () =
let open Configurator.V1 in
main ~name:"rng_flags" (fun _t ->
let c_lib_flags =
match Sys.os_type with
| "Win32" | "Cygwin" -> ["-lbcrypt"]
| _ -> []
in
Flags.write_sexp "rng_c_flags.sexp" c_lib_flags
)