Skip to content

Commit db608be

Browse files
committed
move flags
1 parent 6153632 commit db608be

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

config/discover.ml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ module C = Configurator.V1
22

33
let () =
44
C.main ~name:"binaryen" (fun c ->
5-
let default : C.Pkg_config.package_conf = { libs = []; cflags = [] } in
5+
let default : C.Pkg_config.package_conf =
6+
{
7+
libs = [ "-lstdc++"; "-lpthread" ];
8+
cflags = [ "-O2"; "-Wall"; "-Wextra" ];
9+
}
10+
in
611
let conf =
712
match C.ocaml_config_var c "system" with
813
| None -> default
9-
| Some ("linux" | "macosx") ->
10-
{
11-
cflags = [ "-O2"; "-Wall"; "-Wextra" ];
12-
libs = [ "-lstdc++"; "-lpthread" ];
13-
}
14+
| Some ("linux" | "macosx") -> default
1415
| Some "mingw64" -> default
1516
| Some unknown ->
1617
failwith ("We don't know how to build for platform: " ^ unknown)

0 commit comments

Comments
 (0)