aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--INSTALL10
-rw-r--r--configure.ml7
2 files changed, 12 insertions, 5 deletions
diff --git a/INSTALL b/INSTALL
index 955e605c3..83c1b9f3f 100644
--- a/INSTALL
+++ b/INSTALL
@@ -55,10 +55,12 @@ QUICK INSTALLATION PROCEDURE.
INSTALLATION PROCEDURE IN DETAILS (NORMAL USERS).
=================================================
-1- Check that you have the Objective Caml compiler version 3.12.1 (or later)
- installed on your computer and that "ocamlc" (or its native code version
- "ocamlc.opt") lie in a directory which is present in your $PATH environment
- variable.
+1- Check that you have the Objective Caml compiler installed on your
+ computer and that "ocamlc" (or, better, its native code version
+ "ocamlc.opt") lies in a directory which is present in your $PATH
+ environment variable. At the time of writing this sentence, all
+ versions of Objective Caml later or equal to 3.12.1 are
+ supported to the exception of Objective Caml 4.02.0.
To get Coq in native-code, (it runs 4 to 10 times faster than
bytecode, but it takes more time to get compiled and the binary is
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