Skip to content

Commit

Permalink
Fix noisy empty strings
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Gesbert <louis.gesbert@ocamlpro.com>
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
  • Loading branch information
AltGr authored and rgrinberg committed Oct 11, 2019
1 parent 039e779 commit 9b5c0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otherlibs/configurator/src/v1.ml
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ module Pkg_config = struct
(Process.run_capture_exn c ~dir ?env t.pkg_config [ what; package ])
with
| "" -> []
| s -> String.split s ~on:' ' |> List.filter ~f:(( <> ) "")
| s -> String.extract_blank_separated_words s
in
Ok { libs = run "--libs"; cflags = run "--cflags" }
else
Expand Down

0 comments on commit 9b5c0f5

Please sign in to comment.