aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ml
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2018-02-26 13:34:53 +0100
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2018-03-05 13:19:18 +0100
commit8e0140143b8eafe15c0ea64ccccd19abcaf6056b (patch)
treefa402df774d0185f3d599ebaeb761e5b2154c8dc /configure.ml
parenteefa2cf42a9fe0f9b2fe608fa01002e9a65e7e3f (diff)
configure: -warn-error: now takes a bool so that you can also turn it off
Diffstat (limited to 'configure.ml')
-rw-r--r--configure.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ml b/configure.ml
index 5d9722a4f..30d2d31f3 100644
--- a/configure.ml
+++ b/configure.ml
@@ -315,7 +315,7 @@ let devel state = { state with
annot = true;
warn_error = true;
}
-let devel_doc = "-local -annot -bin-annot -warn-error"
+let devel_doc = "-local -annot -bin-annot -warn-error yes"
let get = function
| "devel" -> devel
@@ -428,8 +428,8 @@ let args_options = Arg.align [
" Force OCaml version";
"-force-findlib-version", arg_set (fun p force_findlib_version -> { p with force_findlib_version }),
" Force findlib version";
- "-warn-error", arg_set (fun p warn_error -> { p with warn_error }),
- " Make OCaml warnings into errors";
+ "-warn-error", arg_bool (fun p warn_error -> { p with warn_error }),
+ "(yes|no) Make OCaml warnings into errors (default no)";
"-camldir", Arg.String (fun _ -> ()),
"<dir> Specifies path to 'ocaml' for running configure script";
"-profile", arg_profile,