Skip to content

Commit c9b6a04

Browse files
authored
flambda-backend: Remove hack for .depend from runtime/dune (#170)
* Remove hack for .depend in runtime/dune Port and extend flambda-backend/ocaml#460 * Remove reference to runtime/.depend from runtime/dune runtime/.depend removed by ocaml/ocaml#9332
1 parent 6e5d4cf commit c9b6a04

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

runtime/dune

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
instrtrace.c caml/opnames.h prims.c)
4646
(action
4747
(progn
48-
(bash "touch .depend") ; hack.
49-
(run make -j8 %{targets} COMPUTE_DEPS=false)
50-
(bash "rm -f .depend"))))
48+
(run make %{targets}))))
5149

5250
(rule
5351
(targets prims.c)
@@ -71,11 +69,7 @@
7169
caml/domain_state.tbl eventlog.c prims.c)
7270
(action
7371
(progn
74-
(bash "touch .depend") ; hack.
75-
(run make -j8 %{targets})
76-
(bash "rm -f .depend"))))
77-
78-
; Why isn't .depend present under _build?
72+
(run make %{targets}))))
7973

8074
(rule
8175
(targets ld.conf)
@@ -91,14 +85,13 @@
9185
; (run make -j8 %{targets})
9286
; (bash "chmod o+w %{targets}"))))
9387
;
88+
9489
(rule
9590
(targets ocamlrun)
9691
(deps libcamlrun.a prims.o)
9792
(action
9893
(progn
99-
(bash "touch .depend") ; hack.
100-
(run make -j8 %{targets})
101-
(bash "rm -f .depend"))))
94+
(run make %{targets}))))
10295

10396
(rule
10497
(targets ocamlrund)
@@ -107,18 +100,14 @@
107100
(deps libcamlrund.a prims.o ocamlrun)
108101
(action
109102
(progn
110-
(bash "touch .depend") ; hack.
111-
(run make -j8 %{targets})
112-
(bash "rm -f .depend"))))
103+
(run make %{targets}))))
113104

114105
(rule
115106
(targets ocamlruni)
116107
(deps libcamlruni.a prims.o ocamlrund)
117108
(action
118109
(progn
119-
(bash "touch .depend") ; hack.
120-
(run make -j8 %{targets})
121-
(bash "rm -f .depend"))))
110+
(run make %{targets}))))
122111

123112
(library
124113
(name runtime_byte)

0 commit comments

Comments
 (0)