aboutsummaryrefslogtreecommitdiff
path: root/configure.ml
diff options
context:
space:
mode:
authorHugo Herbelin2015-10-25 15:20:28 +0100
committerHugo Herbelin2015-10-26 20:05:41 +0100
commitee72fb2936a4ff5032aa6b8fba3165cdb6ca448e (patch)
tree7641269f94e0cab6436b2c04a19939333f27c064 /configure.ml
parentd1114c5f55fcb96a99a1a5562b014414ad8217ba (diff)
Preventing using OCaml 4.02.0 for compiling Coq as compilation times
are redhibitory.
Diffstat (limited to 'configure.ml')
-rw-r--r--configure.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ml b/configure.ml
index 806ac381b2..0573cced63 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