summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Herbelin <Hugo.Herbelin@inria.fr>2017-12-08 23:38:28 (GMT)
committerHugo Herbelin <Hugo.Herbelin@inria.fr>2017-12-09 15:41:18 (GMT)
commit04a6362feb6cbfaa00be4d001dee2b390d0ff21c (patch)
treee9f0a840016064441cf2d9a5e06ecbb2c7461177
parent81266e09faeceda6dd14af823e8ff13748c881bc (diff)
downloadcoq-v8.3.zip
coq-v8.3.tar.gz
coq-v8.3.tar.bz2
Adding support for OCaml 4.06.0 (option -unsafe-string needed).refs/pull/6360/headv8.3
And other minor changes. Cherry-pick from v8.4 (7f2240f).
-rw-r--r--INSTALL1
-rwxr-xr-xconfigure11
2 files changed, 10 insertions, 2 deletions
diff --git a/INSTALL b/INSTALL
index d82b801..8b045c4 100644
--- a/INSTALL
+++ b/INSTALL
@@ -49,6 +49,7 @@ WHAT DO YOU NEED ?
with the corresponding version of Objective Caml, however
avoiding version 5.00)
+ - The num library if with Objective Caml version 4.06.0 or later
- GNU Make version 3.81 or later
(
diff --git a/configure b/configure
index c0a524c..cfd4851 100755
--- a/configure
+++ b/configure
@@ -105,6 +105,7 @@ coq_debug_flag_opt=
coq_profile_flag=
coq_annotate_flag=
coq_warning_flag=
+coq_safe_string_flag=
best_compiler=opt
cflags="-fno-defer-pop -Wall -Wno-unused"
natdynlink=yes
@@ -444,11 +445,17 @@ case $CAMLVERSION in
CAMLP4COMPAT="-loc loc"
echo "Warning: OCaml 4.02.0 suffers from a bug inducing"
echo "very slow compilation times";;
- ?*)
+ 4.0[0-5]*)
# From 4.03.0, 4.00.0's warning 31, irrelevant for us, is fatal when activated
CAMLP4COMPAT="-loc loc"
coq_warning_flag="-w -31"
echo "You have Objective-Caml $CAMLVERSION. Good!";;
+ ?*)
+ # From 4.06.0
+ CAMLP4COMPAT="-loc loc"
+ coq_warning_flag="-w -31"
+ coq_safe_string_flag=-unsafe-string
+ echo "You have Objective-Caml $CAMLVERSION. Good!";;
*)
echo "I found the Objective-Caml compiler but cannot find its version number!"
echo "Is it installed properly?"
@@ -1120,7 +1127,7 @@ CAMLOPTLINK="$nativecamlc"
CAMLMKTOP="$ocamlmktopexec"
# Caml flags
-CAMLFLAGS=-rectypes $coq_annotate_flag $coq_warning_flag
+CAMLFLAGS=-rectypes $coq_annotate_flag $coq_warning_flag $coq_safe_string_flag
# Compilation debug flags
CAMLDEBUG=$coq_debug_flag