File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ let pkg_export =
35
35
Printf. sprintf " PKG_CONFIG_PATH=%s" path
36
36
| _ -> " "
37
37
38
+ let split_ws str = List. filter (String. split ~on: ' ' str) ~f: (String. (<> ) " " )
39
+
38
40
let () =
39
41
let module C = Configurator in
40
42
C. main ~name: " sqlite3" (fun c ->
@@ -46,7 +48,7 @@ let () =
46
48
let cmd = pkg_export ^ " pkg-config --cflags sqlite3" in
47
49
match read_lines_from_cmd ~max_lines: 1 cmd with
48
50
| [cflags] ->
49
- let cflags = String. split ~on: ' ' cflags in
51
+ let cflags = split_ws cflags in
50
52
if
51
53
is_macosx ||
52
54
try
@@ -60,7 +62,7 @@ let () =
60
62
let libs =
61
63
let cmd = pkg_export ^ " pkg-config --libs sqlite3" in
62
64
match read_lines_from_cmd ~max_lines: 1 cmd with
63
- | [libs] -> String. split ~on: ' ' libs
65
+ | [libs] -> split_ws libs
64
66
| _ -> failwith " pkg-config failed to return libs"
65
67
in
66
68
let conf = { C.Pkg_config. cflags; libs } in
You can’t perform that action at this time.
0 commit comments