aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2018-07-13 11:50:34 +0100
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2018-07-13 11:50:34 +0100
commitef62eddc084784fdc001e3e304a73a73568e7b8a (patch)
tree7ce45be9ba09503f58b78791730647421d8c5806
parent8a388cd914f8c8359f7637ade728f3a9ac5a291b (diff)
parent09995c761c35cbb1f217fcf76365bd406157b8e6 (diff)
Merge PR #6930: Make -warn-error fail on warnings emitted by coqc on stdlib.
-rw-r--r--Makefile.build2
-rw-r--r--configure.ml1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.build b/Makefile.build
index 84f86c99a..c100eda40 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -195,7 +195,7 @@ TIMER=$(if $(TIMED), $(STDTIME), $(TIMECMD))
# the output format of the unix command time. For instance:
# TIME="%C (%U user, %S sys, %e total, %M maxres)"
-COQOPTS=$(NATIVECOMPUTE)
+COQOPTS=$(NATIVECOMPUTE) $(COQWARNERROR)
BOOTCOQC=$(TIMER) $(COQTOPBEST) -boot $(COQOPTS) -compile
LOCALINCLUDES=$(addprefix -I ,$(SRCDIRS))
diff --git a/configure.ml b/configure.ml
index 3a98e8892..c08e8dfcc 100644
--- a/configure.ml
+++ b/configure.ml
@@ -1339,6 +1339,7 @@ let write_makefile f =
pr "WITHDOC=%s\n\n" (if !prefs.withdoc then "all" else "no");
pr "# Option to produce precompiled files for native_compute\n";
pr "NATIVECOMPUTE=%s\n" (if !prefs.nativecompiler then "-native-compiler" else "");
+ pr "COQWARNERROR=%s\n" (if !prefs.warn_error then "-w +default" else "");
close_out o;
Unix.chmod f 0o444