Skip to content

Remove hack for .depend from runtime/dune #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions ocaml/runtime/dune
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
instrtrace.c caml/opnames.h prims.c)
(action
(progn
(bash "touch .depend") ; hack.
(run make -j8 %{targets} COMPUTE_DEPS=false)
(bash "rm -f .depend"))))
(run make %{targets}))))

(rule
(targets prims.c)
Expand All @@ -71,11 +69,7 @@
caml/domain_state.tbl eventlog.c prims.c)
(action
(progn
(bash "touch .depend") ; hack.
(run make -j8 %{targets})
(bash "rm -f .depend"))))

; Why isn't .depend present under _build?
(run make %{targets}))))

(rule
(targets ld.conf)
Expand All @@ -91,14 +85,13 @@
; (run make -j8 %{targets})
; (bash "chmod o+w %{targets}"))))
;

(rule
(targets ocamlrun)
(deps libcamlrun.a prims.o)
(action
(progn
(bash "touch .depend") ; hack.
(run make -j8 %{targets})
(bash "rm -f .depend"))))
(run make %{targets}))))

(rule
(targets ocamlrund)
Expand All @@ -107,18 +100,14 @@
(deps libcamlrund.a prims.o ocamlrun)
(action
(progn
(bash "touch .depend") ; hack.
(run make -j8 %{targets})
(bash "rm -f .depend"))))
(run make %{targets}))))

(rule
(targets ocamlruni)
(deps libcamlruni.a prims.o ocamlrund)
(action
(progn
(bash "touch .depend") ; hack.
(run make -j8 %{targets})
(bash "rm -f .depend"))))
(run make %{targets}))))

(library
(name runtime_byte)
Expand Down