aboutsummaryrefslogtreecommitdiff
path: root/dev/dune-dbg.in
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-10-16 15:17:31 +0200
committerEmilio Jesus Gallego Arias2018-10-23 01:17:24 +0200
commitf8881bcc694644700e20f475b0a36ec740b2547d (patch)
treea7b532f3f0603084e7fddb8a80e29a5d92fdd964 /dev/dune-dbg.in
parent1db19a8f454e0f8c5a60101c87ccd38e0883d530 (diff)
[dune] Compile debug and checker printers.
As noted by Gäetan, we didn't compile these. We also provide a recipe to run `ocamldebug`. Try (after a build): ``` dune exec dev/dune-dbg (ocd) source dune_db ``` or ``` dune exec dev/dune-dbg checker (ocd) source checker_dune_db ``` for the checker.
Diffstat (limited to 'dev/dune-dbg.in')
-rwxr-xr-xdev/dune-dbg.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev/dune-dbg.in b/dev/dune-dbg.in
new file mode 100755
index 0000000000..464e026400
--- /dev/null
+++ b/dev/dune-dbg.in
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+# Run in a proper install dune env.
+case $1 in
+checker)
+ ocamldebug `ocamlfind query -recursive -i-format coq.checker_printers` -I +threads -I dev _build/default/checker/main.bc
+ ;;
+*)
+ ocamldebug `ocamlfind query -recursive -i-format coq.top_printers` -I +threads -I dev _build/default/topbin/coqtop_byte_bin.bc
+ ;;
+esac