Skip to content

Commit 44b06b3

Browse files
committed
Fix toplevel compilation (missing runtime file)
1 parent 6defc86 commit 44b06b3

File tree

1 file changed

+18
-0
lines changed
  • toplevel/examples/lwt_toplevel

1 file changed

+18
-0
lines changed

toplevel/examples/lwt_toplevel/dune

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,23 @@
145145
%{target}
146146
(run ./effects_flags.exe txt %{profile}))))
147147

148+
(rule
149+
(target javascript_runtime_files.txt)
150+
(action
151+
(with-stdout-to
152+
%{target}
153+
(pipe-stdout
154+
(run
155+
ocamlfind
156+
query
157+
-format
158+
"%+(jsoo_runtime)"
159+
-r
160+
js_of_ocaml-ppx.as-lib)
161+
(with-accepted-exit-codes
162+
(or 0 1)
163+
(run grep -qv ^$))))))
164+
148165
(rule
149166
(targets toplevel.js)
150167
(action
@@ -169,6 +186,7 @@
169186
--toplevel
170187
--disable
171188
shortvar
189+
%{read-strings:javascript_runtime_files.txt}
172190
%{dep:toplevel.bc}
173191
-o
174192
%{targets})))

0 commit comments

Comments
 (0)