diff options
Diffstat (limited to 'configure.ml')
-rw-r--r-- | configure.ml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ml b/configure.ml index 806ac381b..0573cced6 100644 --- a/configure.ml +++ b/configure.ml @@ -513,7 +513,12 @@ let caml_version_nums = let check_caml_version () = if caml_version_nums >= [3;12;1] then - printf "You have OCaml %s. Good!\n" caml_version + if caml_version_nums = [4;2;0] && not !Prefs.force_caml_version then + die ("Your version of OCaml is 4.02.0 which suffers from a bug inducing\n" ^ + "very slow compilation times. If you still want to use it, use \n" ^ + "option -force-caml-version.\n") + else + printf "You have OCaml %s. Good!\n" caml_version else let () = printf "Your version of OCaml is %s.\n" caml_version in if !Prefs.force_caml_version then |