Skip to content

Commit 732e987

Browse files
committed
Use the release profile for configure in opam
The build instructions in the opam files correctly use `-p` for the builds themselves, but the configure script uses the default profile. The configure script now recognises -release in its first argument as meaning that `--profile=release` should be added to the `dune exec` invocation, and the opam files are updated to include this flag.
1 parent 197637e commit 732e987

5 files changed

+12
-1
lines changed

configure

+8-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@ then
1111
exit 1
1212
fi
1313

14-
dune exec --root . -- $configure "$@"
14+
if [ "x$1" = 'x-release' ]; then
15+
shift 1
16+
dune_release='--profile=release'
17+
else
18+
dune_release=''
19+
fi
20+
21+
dune exec $dune_release --root . -- $configure "$@"

coq.opam

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dev-repo: "git+https://github.com/coq/coq.git"
2020
build: [
2121
["dune" "subst"] {dev}
2222
[ "./configure"
23+
"-release" # -release must be the first command line argument
2324
"-prefix" prefix
2425
"-mandir" man
2526
"-libdir" "%{lib}%/coq"

coq.opam.template

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
build: [
22
["dune" "subst"] {dev}
33
[ "./configure"
4+
"-release" # -release must be the first command line argument
45
"-prefix" prefix
56
"-mandir" man
67
"-libdir" "%{lib}%/coq"

rocq-runtime.opam

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ dev-repo: "git+https://github.com/coq/coq.git"
3939
build: [
4040
["dune" "subst"] {dev}
4141
[ "./configure"
42+
"-release" # -release must be the first command line argument
4243
"-prefix" prefix
4344
"-mandir" man
4445
"-libdir" "%{lib}%/coq"

rocq-runtime.opam.template

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
build: [
22
["dune" "subst"] {dev}
33
[ "./configure"
4+
"-release" # -release must be the first command line argument
45
"-prefix" prefix
56
"-mandir" man
67
"-libdir" "%{lib}%/coq"

0 commit comments

Comments
 (0)