Skip to content

Commit 1d571f4

Browse files
committed
dune generate unsorted All.v
To fix composed builds, cf #201
1 parent 31865e3 commit 1d571f4

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

theories/All.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ set -e
33
set -u
44
set -o pipefail
55
cd "$(dirname "$0")"
6+
67
printf 'Set Warnings "-deprecated-library-file,-warn-library-file,-notation-incompatible-prefix,-notation-overridden,-overwriting-delimiting-key".\n'
7-
find . -regex '.*/[^.][^/]*[.]v' ! -path ./All.v | sort | xargs rocq dep -Q . Stdlib -sort | \
8+
9+
if [ "$1" = "-unsorted" ]; then
10+
rocqdep=xargs echo
11+
else
12+
rocqdep="xargs rocq dep -Q . Stdlib -sort"
13+
fi
14+
find . -regex '.*/[^.][^/]*[.]v' ! -path ./All.v | sort | $rocqdep | \
815
sed -e 's#\./#From Stdlib Require Export #g' -e 's#\.v\s*#.\n#g' -e 's#/#.#g'

theories/dune

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
(rule
1313
(targets All.v)
1414
(deps All.sh (source_tree .))
15-
(action (with-stdout-to %{targets} (run env bash ./All.sh))))
15+
; -unsorted: coqdep will want the .vo for the corelib to be present
16+
; we could depend on rocq-core instead
17+
(action (with-stdout-to %{targets} (run env bash ./All.sh -unsorted))))

0 commit comments

Comments
 (0)