aboutsummaryrefslogtreecommitdiff
path: root/kernel/byterun
diff options
context:
space:
mode:
authorPierre Roux2019-10-31 17:04:48 +0100
committerPierre Roux2019-11-01 10:22:03 +0100
commit324072c12a164f98d0ffa8125d319ffb49df87d8 (patch)
tree5d1ae2b3e4346b51fb888715dc7c3a3c9d14dde5 /kernel/byterun
parent22ee3faf16e9d9f528f4738d562892e9c4d653b5 (diff)
Communicate CFLAGS to dune
Diffstat (limited to 'kernel/byterun')
-rw-r--r--kernel/byterun/dune13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/byterun/dune b/kernel/byterun/dune
index 20bdf28e54..d0145176ea 100644
--- a/kernel/byterun/dune
+++ b/kernel/byterun/dune
@@ -1,3 +1,16 @@
+; Dune doesn't use configure's output, but it is still necessary for
+; some Coq files to work; will be fixed in the future.
+(rule
+ (targets dune.c_flags)
+ (mode fallback)
+ (deps %{project_root}/configure.ml %{project_root}/dev/ocamldebug-coq.run (env_var COQ_CONFIGURE_PREFIX))
+ (action (chdir %{project_root} (run %{ocaml} configure.ml -no-ask -native-compiler no))))
+
+(env
+ (dev (c_flags (:include dune.c_flags)))
+ (release (c_flags (:include dune.c_flags)))
+ (ireport (c_flags (:include dune.c_flags))))
+
(library
(name byterun)
(synopsis "Coq's Kernel Abstract Reduction Machine [C implementation]")