diff options
| author | Maxime Dénès | 2017-06-16 16:15:45 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2017-06-16 16:15:45 +0200 |
| commit | d7bb51c69b5a274e341b1a6776baa965d98b3177 (patch) | |
| tree | b843381ffca3cf5e3f3f0204d64612c06ce7991e | |
| parent | c22fe8bb7e0fedd8b3ced088832c13b5e55e9fc2 (diff) | |
| parent | 6050b44172660a3285a337896baea35b32e58d47 (diff) | |
Merge PR#730: Protecting from warnings while compiling 8.6
| -rwxr-xr-x | configure | 2 | ||||
| -rw-r--r-- | configure.ml | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -26,7 +26,7 @@ done ## We check that $cmd is ok before the real exec $cmd -`$cmd -version > /dev/null 2>&1` && exec $cmd $script "$@" +`$cmd -version > /dev/null 2>&1` && exec $cmd -w "-3" $script "$@" ## If we're still here, something is wrong with $cmd diff --git a/configure.ml b/configure.ml index 04b04979d9..caef75271c 100644 --- a/configure.ml +++ b/configure.ml @@ -510,6 +510,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 +1130,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"; |
