-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/coq-8.17' into master-8.17
- Loading branch information
Showing
27 changed files
with
101 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
## # GNU Lesser General Public License Version 2.1 ## | ||
## # (see LICENSE file for the text of the license) ## | ||
########################################################################## | ||
## GNUMakefile for Coq 8.16.1 | ||
## GNUMakefile for Coq 8.17.0 | ||
|
||
# For debugging purposes (must stay here, don't move below) | ||
INITIAL_VARS := $(.VARIABLES) | ||
|
@@ -76,7 +76,7 @@ VERBOSE ?= | |
TIMED?= | ||
TIMECMD?= | ||
# Use command time on linux, gtime on Mac OS | ||
TIMEFMT?="$@ (real: %e, user: %U, sys: %S, mem: %M ko)" | ||
TIMEFMT?="$(if $(findstring undefined, $(flavor 1)),$@,$(1)) (real: %e, user: %U, sys: %S, mem: %M ko)" | ||
ifneq (,$(TIMED)) | ||
ifeq (0,$(shell command time -f "" true >/dev/null 2>/dev/null; echo $$?)) | ||
STDTIME?=command time -f $(TIMEFMT) | ||
|
@@ -278,7 +278,7 @@ COQDOCLIBS?=$(COQLIBS_NOML) | |
# The version of Coq being run and the version of coq_makefile that | ||
# generated this makefile | ||
COQ_VERSION:=$(shell $(COQC) --print-version | cut -d " " -f 1) | ||
COQMAKEFILE_VERSION:=8.16.1 | ||
COQMAKEFILE_VERSION:=8.17.0 | ||
|
||
# COQ_SRC_SUBDIRS is for user-overriding, usually to add | ||
# `user-contrib/Foo` to the includes, we keep COQCORE_SRC_SUBDIRS for | ||
|
@@ -677,12 +677,14 @@ clean:: | |
$(HIDE)rm -f $(CMOFILES) | ||
$(HIDE)rm -f $(CMIFILES) | ||
$(HIDE)rm -f $(CMAFILES) | ||
$(HIDE)rm -f $(CMOFILES:.cmo=.cmx) | ||
$(HIDE)rm -f $(CMXFILES) | ||
$(HIDE)rm -f $(CMXAFILES) | ||
$(HIDE)rm -f $(CMXSFILES) | ||
$(HIDE)rm -f $(CMOFILES:.cmo=.o) | ||
$(HIDE)rm -f $(OFILES) | ||
$(HIDE)rm -f $(CMXAFILES:.cmxa=.a) | ||
$(HIDE)rm -f $(MLGFILES:.mlg=.ml) | ||
$(HIDE)rm -f $(CMXFILES:.cmx=.cmt) | ||
$(HIDE)rm -f $(MLIFILES:.mli=.cmti) | ||
$(HIDE)rm -f $(ALLDFILES) | ||
$(HIDE)rm -f $(NATIVEFILES) | ||
$(HIDE)find . -name .coq-native -type d -empty -delete | ||
|
@@ -788,17 +790,43 @@ else | |
TIMING_EXTRA = | ||
endif | ||
|
||
# can't make | ||
# https://www.gnu.org/software/make/manual/make.html#Static-Pattern | ||
# work with multiple target rules | ||
# so use eval in a loop instead | ||
# with grouped targets https://www.gnu.org/software/make/manual/make.html#Multiple-Targets | ||
# if available (GNU Make >= 4.3) | ||
ifneq (,$(filter grouped-target,$(.FEATURES))) | ||
define globvorule= | ||
|
||
# take care to $$ variables using $< etc | ||
$(1).vo $(1).glob &: $(1).v | $(VDFILE) | ||
$(SHOW)COQC $(1).v | ||
$(HIDE)$$(TIMER) $(COQC) $(COQDEBUG) $(TIMING_ARG) $(COQFLAGS) $(COQLIBS) $(1).v $$(TIMING_EXTRA) | ||
ifeq ($(COQDONATIVE), "yes") | ||
$(SHOW)COQNATIVE $(1).vo | ||
$(HIDE)$(call TIMER,$(1).vo.native) $(COQNATIVE) $(COQLIBS) $(1).vo | ||
endif | ||
|
||
endef | ||
else | ||
|
||
$(VOFILES): %.vo: %.v | $(VDFILE) | ||
$(SHOW)COQC $< | ||
$(HIDE)$(TIMER) $(COQC) $(COQDEBUG) $(TIMING_ARG) $(COQFLAGS) $(COQLIBS) $< $(TIMING_EXTRA) | ||
ifeq ($(COQDONATIVE), "yes") | ||
$(SHOW)COQNATIVE $@ | ||
$(HIDE)$(COQNATIVE) $(COQLIBS) $@ | ||
$(HIDE)$(call TIMER,[email protected]) $(COQNATIVE) $(COQLIBS) $@ | ||
endif | ||
|
||
# FIXME ?merge with .vo / .vio ? | ||
# this is broken :( todo fix if we ever find a solution that doesn't need grouped targets | ||
$(GLOBFILES): %.glob: %.v | ||
$(TIMER) $(COQC) $(COQDEBUG) $(COQFLAGS) $(COQLIBS) $< | ||
$(SHOW)'COQC $< (for .glob)' | ||
$(HIDE)$(TIMER) $(COQC) $(COQDEBUG) $(COQFLAGS) $(COQLIBS) $< | ||
|
||
endif | ||
|
||
$(foreach vfile,$(VFILES:.v=),$(eval $(call globvorule,$(vfile)))) | ||
|
||
$(VFILES:.v=.vio): %.vio: %.v | ||
$(SHOW)COQC -vio $< | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
-R ./ CertiCoq.Benchmarks.lib | ||
-arg -w -arg -deprecated | ||
|
||
Binom.v | ||
Color.v | ||
vs.v | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
From MetaCoq Require Import ExtractableLoader. | ||
From CertiCoq Require Export CertiCoqVanilla. (* We reuse the ML certicoq plugin to parse options and print Clight code *) | ||
(* Using Export to get the primitives registrations the *) | ||
Declare ML Module "coq-certicoq-bootstrapped-erasure.plugin". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
val __coq_plugin_name : string | ||
(* val __coq_plugin_name : string *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
val __coq_plugin_name : string | ||
(* val __coq_plugin_name : string *) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.