aboutsummaryrefslogtreecommitdiff
path: root/coq.opam
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-09-10 11:37:09 +0200
committerEmilio Jesus Gallego Arias2018-09-21 01:01:02 +0200
commit81e4c7152da598c1750e7881b197a6fcf54e818d (patch)
tree04b28f3ccc82a436b6202840477a3f5889f98745 /coq.opam
parent8f23d8d339403006d6464510c7d2cd285cf38b0a (diff)
[dune] [configure] Allow to set prefix using environment variable.
This is a hack to enable correct OPAM building, the medium-term plan is to avoid having to set a prefix at configure time but instead using a set of rules to locate the Coq library. We use `(env_var ...)` in a dependency rule, which a feature of Dune 1.2
Diffstat (limited to 'coq.opam')
-rw-r--r--coq.opam4
1 files changed, 4 insertions, 0 deletions
diff --git a/coq.opam b/coq.opam
index 2ac98d8946..cd89057598 100644
--- a/coq.opam
+++ b/coq.opam
@@ -15,6 +15,10 @@ depends: [
"camlp5"
]
+build-env: [
+ [ COQ_CONFIGURE_PREFIX = "%{prefix}" ]
+]
+
build: [
[ "dune" "build" "@vodeps" ]
[ "dune" "exec" "coq_dune" "_build/default/.vfiles.d" ]