Skip to content

Commit

Permalink
[build] add dev shim for coqidetop.opt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodolphe Lepigre committed Dec 11, 2024
1 parent 0794b2c commit 54d30a9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dev/shim/dune
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@
(bash "echo '\"$(dirname \"$0\")\"/%{bin:coqtop} -I \"$(dirname \"$0\")/%{workspace_root}/_build/install/default/lib\" -coqlib \"$(dirname \"$0\")/%{project_root}\" \"$@\"'")
(run chmod +x %{targets})))))

; coqidetop

(alias
(name coqidetop-prelude)
(deps
%{bin:coqidetop.opt}
; XXX: bug, we are missing the dep on the _install meta file...
%{project_root}/theories/Init/Prelude.vo))

(rule
(targets coqidetop.opt)
(deps (alias coqidetop-prelude))
(action
(with-stdout-to %{targets}
(progn
(echo "#!/usr/bin/env bash\n")
(bash "echo '\"$(dirname \"$0\")\"/%{bin:coqidetop.opt} -I \"$(dirname \"$0\")/%{workspace_root}/_build/install/default/lib\" -coqlib \"$(dirname \"$0\")/%{project_root}\" \"$@\"'")
(run chmod +x %{targets})))))

; coqc

(alias
Expand Down

0 comments on commit 54d30a9

Please sign in to comment.