aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-12-12 18:42:40 +0100
committerEmilio Jesus Gallego Arias2018-12-12 18:42:40 +0100
commitbb10141086110b8a736eb1e54292e5a48764f519 (patch)
treeca783b7c7d5fdbc6ea7d73ce5ea0da334e9994f5
parentdfd4c4a2b50edf894a19cd50c43517e1804eadc9 (diff)
parenta984c960e63b6b1a0774cbbba63ea398100c0c3d (diff)
Merge PR #9087: Add CI job building stdlib with `async-proofs on`
-rw-r--r--.gitlab-ci.yml7
-rw-r--r--Makefile.build5
-rw-r--r--theories/Strings/BinaryString.v2
-rw-r--r--theories/Strings/HexString.v2
-rw-r--r--theories/Strings/OctalString.v2
5 files changed, 14 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 65a8a0cb88..b1a805b59e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -225,6 +225,13 @@ build:egde:dune:dev:
OPAM_SWITCH: edge
DUNE_TARGET: world
+build:base+async:
+ <<: *build-template
+ stage: test
+ variables:
+ COQ_EXTRA_CONF: "-native-compiler yes -coqide opt"
+ COQUSERFLAGS: "-async-proofs on"
+
windows64:
<<: *windows-template
variables:
diff --git a/Makefile.build b/Makefile.build
index ec9b81dba4..0a73562467 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -44,6 +44,9 @@ NO_RECALC_DEPS ?=
# Non-empty runs the checker on all produced .vo files:
VALIDATE ?=
+# When non-empty, passed as extra arguments to coqtop/coqc:
+COQUSERFLAGS ?=
+
# Output file names for timed builds
TIME_OF_BUILD_FILE ?= time-of-build.log
TIME_OF_BUILD_BEFORE_FILE ?= time-of-build-before.log
@@ -191,7 +194,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) $(COQWARNERROR)
+COQOPTS=$(NATIVECOMPUTE) $(COQWARNERROR) $(COQUSERFLAGS)
BOOTCOQC=$(TIMER) $(COQTOPBEST) -boot $(COQOPTS) -compile
LOCALINCLUDES=$(addprefix -I ,$(SRCDIRS))
diff --git a/theories/Strings/BinaryString.v b/theories/Strings/BinaryString.v
index 6df0a9170a..a2bb1763f5 100644
--- a/theories/Strings/BinaryString.v
+++ b/theories/Strings/BinaryString.v
@@ -48,7 +48,7 @@ Module Raw.
end
end.
- Fixpoint to_N_of_pos (p : positive) (rest : string) (base : N)
+ Fixpoint to_N_of_pos (p : positive) (rest : string) (base : N) {struct p}
: to_N (of_pos p rest) base
= to_N rest match base with
| N0 => N.pos p
diff --git a/theories/Strings/HexString.v b/theories/Strings/HexString.v
index 9ea93c909e..9fa8e0ccf2 100644
--- a/theories/Strings/HexString.v
+++ b/theories/Strings/HexString.v
@@ -120,7 +120,7 @@ Module Raw.
end
end.
- Fixpoint to_N_of_pos (p : positive) (rest : string) (base : N)
+ Fixpoint to_N_of_pos (p : positive) (rest : string) (base : N) {struct p}
: to_N (of_pos p rest) base
= to_N rest match base with
| N0 => N.pos p
diff --git a/theories/Strings/OctalString.v b/theories/Strings/OctalString.v
index fe8cc9aae9..78e98e451b 100644
--- a/theories/Strings/OctalString.v
+++ b/theories/Strings/OctalString.v
@@ -78,7 +78,7 @@ Module Raw.
end
end.
- Fixpoint to_N_of_pos (p : positive) (rest : string) (base : N)
+ Fixpoint to_N_of_pos (p : positive) (rest : string) (base : N) {struct p}
: to_N (of_pos p rest) base
= to_N rest match base with
| N0 => N.pos p