Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discover: Print more information on failure #314

Merged
merged 1 commit into from
Apr 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/util/discover.ml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,18 @@ let () =
safe_remove (Filename.chop_extension !caml_file ^ ".cmi");
safe_remove (Filename.chop_extension !caml_file ^ ".cmo"));

let exit status =
if status <> 0 then begin
if !debug then printf "
See %s for more details.
" !log_file
else printf "
Run with DEBUG=y for more details.
";
end;
exit status
in

let setup_data = ref [] in

(* Test for pkg-config. *)
Expand Down