Update configurator

This commit is contained in:
Jeremie Dimino 2018-03-06 17:52:58 +00:00 committed by Jérémie Dimino
parent 6ee6ed35d2
commit 21a980a5d1
1 changed files with 3 additions and 3 deletions

View File

@ -205,9 +205,9 @@ let create ?dest_dir ?ocamlc ?(log=ignore) name =
run_capture_exn t ~dir:dest_dir ocamlc_config_cmd
|> String.split_lines
in
match Ocamlc_config.of_lines ocamlc_config_output with
| oc -> Ocamlc_config.bindings oc
| exception (Ocamlc_config.E msg) ->
match Ocaml_config.Vars.of_lines ocamlc_config_output with
| Ok x -> x
| Error msg ->
die "Failed to parse the output of '%s':@\n\
%s"
ocamlc_config_cmd msg