We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6153632 commit db608beCopy full SHA for db608be
config/discover.ml
@@ -2,15 +2,16 @@ module C = Configurator.V1
2
3
let () =
4
C.main ~name:"binaryen" (fun c ->
5
- let default : C.Pkg_config.package_conf = { libs = []; cflags = [] } in
+ let default : C.Pkg_config.package_conf =
6
+ {
7
+ libs = [ "-lstdc++"; "-lpthread" ];
8
+ cflags = [ "-O2"; "-Wall"; "-Wextra" ];
9
+ }
10
+ in
11
let conf =
12
match C.ocaml_config_var c "system" with
13
| None -> default
- | Some ("linux" | "macosx") ->
- {
- cflags = [ "-O2"; "-Wall"; "-Wextra" ];
- libs = [ "-lstdc++"; "-lpthread" ];
- }
14
+ | Some ("linux" | "macosx") -> default
15
| Some "mingw64" -> default
16
| Some unknown ->
17
failwith ("We don't know how to build for platform: " ^ unknown)
0 commit comments