Commit 28245bbb authored by POTTIER Francois's avatar POTTIER Francois
Browse files

Turn off --infer silently if --compile-errors or other similar flags are set.

parent 8c7c6948
......@@ -261,6 +261,15 @@ let () =
exit 0
(* ------------------------------------------------------------------------- *)
(* Semi-hack: for some specific requests, such as [--interpret-error],
[--list-errors] and [--compile-errors], there is no need to use [--infer].
We turn it off silently. This may help avoid dependency nightmares. *)
let () =
if !interpret_error || !list_errors || !compile_errors <> None then
infer := false
(* ------------------------------------------------------------------------- *)
(* Menhir is able to suggest compile and link flags to be passed to the
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment