Skip to content

Commit 7ee9021

Browse files
committed
Tweak warning options for Coq/Rocq 9.0
1 parent 3d0521b commit 7ee9021

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Makefile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,35 @@ endif
6161
# deprecated-since-8.20
6262
# renamings performed in Coq's standard library;
6363
# using the new names would break compatibility with earlier Coq versions.
64+
# deprecated-from-Coq
65+
# Rocq wants "From Stdlib Require" while Coq wants "From Coq Require".
6466

6567
COQCOPTS ?= \
6668
-w -unused-pattern-matching-variable \
6769
-w -deprecated-since-8.19 \
68-
-w -deprecated-since-8.20
70+
-w -deprecated-since-8.20 \
71+
-w -deprecated-from-Coq
6972

7073
cparser/Parser.vo: COQCOPTS += -w -deprecated-instance-without-locality
7174
MenhirLib/Interpreter.vo: COQCOPTS += -w -undeclared-scope
7275

7376
# Flocq and Menhirlib run into other renaming issues.
7477
# These warnings can only be addressed upstream.
7578

76-
flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
77-
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
79+
flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition -w -deprecated-since-9.0
80+
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition -w -deprecated-since-9.0
7881

7982
# For the extraction phase, we silence other warnings:
8083
# change-dir-deprecated:
8184
# warning introduced in 8.20, no alternative before 8.20
8285
# extraction-default-directory:
8386
# warning introduced in 8.20, no alternative before 8.20
87+
# deprecated-from-Coq:
88+
# see above
8489
COQEXTRACTOPTS ?= \
8590
-w -change-dir-deprecated \
86-
-w -extraction-default-directory
91+
-w -extraction-default-directory \
92+
-w -deprecated-from-Coq
8793

8894
ifneq ($(INSTALL_COQDEV),true)
8995
# Disable costly generation of .cmx files, which are not used locally

0 commit comments

Comments
 (0)