aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ml
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ml')
-rw-r--r--configure.ml10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ml b/configure.ml
index 04b04979d..bd6cb4805 100644
--- a/configure.ml
+++ b/configure.ml
@@ -11,8 +11,8 @@
#load "str.cma"
open Printf
-let coq_version = "8.6"
-let coq_macos_version = "8.6.00" (** "[...] should be a string comprised of
+let coq_version = "8.6.1"
+let coq_macos_version = "8.6.1" (** "[...] should be a string comprised of
three non-negative, period-separated integers [...]" *)
let vo_magic = 8600
let state_magic = 58600
@@ -349,6 +349,8 @@ let args_options = Arg.align [
" URL of the coq website";
"-force-caml-version", Arg.Set Prefs.force_caml_version,
" Force OCaml version";
+ "-camldir", Arg.String (fun _ -> ()),
+ "<dir> Specifies path to 'ocaml' for running configure script";
]
let parse_args () =
@@ -510,6 +512,8 @@ let camltag = match caml_version_list with
| x::y::_ -> "OCAML"^x^y
| _ -> assert false
+let coq_warn_flag =
+ if caml_version_nums > [4;2;3] then "-w -3-52-56" else ""
(** * CamlpX configuration *)
@@ -1128,7 +1132,7 @@ let write_makefile f =
pr "CAMLHLIB=%S\n\n" camllib;
pr "# Caml link command and Caml make top command\n";
pr "# Caml flags\n";
- pr "CAMLFLAGS=-rectypes %s\n" coq_annotate_flag;
+ pr "CAMLFLAGS=-rectypes %s %s\n" coq_annotate_flag coq_warn_flag;
pr "# User compilation flag\n";
pr "USERFLAGS=\n\n";
pr "# Flags for GCC\n";