Skip to content

Commit

Permalink
Tweak the warning flags for extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierleroy committed Dec 6, 2024
1 parent d4c6a8c commit 8d4d2f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ MenhirLib/Interpreter.vo: COQCOPTS += -w -undeclared-scope
flocq/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition
MenhirLib/%.vo: COQCOPTS+=-w -deprecated-syntactic-definition

# For the extraction phase, we silence other warnings:
# change-dir-deprecated:
# warning introduced in 8.20, no alternative before 8.20
# extraction-default-directory:
# warning introduced in 8.20, no alternative before 8.20
COQEXTRACTOPTS ?= \
-w -change-dir-deprecated \
-w -extraction-default-directory

ifneq ($(INSTALL_COQDEV),true)
# Disable costly generation of .cmx files, which are not used locally
COQCOPTS += -w -deprecated-native-compiler-option -native-compiler no
Expand All @@ -101,7 +110,7 @@ PROFILE_ZIP ?= true
COQC="$(COQBIN)coqc" -q $(COQINCLUDES) $(COQCOPTS)
COQDEP="$(COQBIN)coqdep" $(COQINCLUDES)
COQDOC="$(COQBIN)coqdoc"
COQEXEC="$(COQBIN)coqtop" $(COQINCLUDES) -batch -load-vernac-source
COQEXEC="$(COQBIN)coqtop" $(COQINCLUDES) $(COQEXTRACTOPTS) -batch -load-vernac-source
COQCHK="$(COQBIN)coqchk" $(COQINCLUDES)
MENHIR=menhir
CP=cp
Expand Down
2 changes: 1 addition & 1 deletion test

0 comments on commit 8d4d2f9

Please sign in to comment.