File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
toplevel/examples/lwt_toplevel Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 145
145
%{target}
146
146
(run ./effects_flags.exe txt %{profile}))))
147
147
148
+ (rule
149
+ (target javascript_files.txt)
150
+ (enabled_if
151
+ (and %{oxcaml_supported} %{lib-available:js_of_ocaml-ppx}))
152
+ (action
153
+ (with-stdout-to
154
+ %{target}
155
+ (pipe-stdout
156
+ (run ocamlfind query -format "%+(jsoo_runtime)" -r ppxlib)
157
+ (run grep -v ^$)))))
158
+
159
+ (rule
160
+ (target javascript_files.txt)
161
+ (enabled_if
162
+ (not
163
+ (and %{oxcaml_supported} %{lib-available:js_of_ocaml-ppx})))
164
+ (action
165
+ (with-stdout-to
166
+ %{target}
167
+ (echo ""))))
168
+
148
169
(rule
149
170
(targets toplevel.js)
150
171
(action
169
190
--toplevel
170
191
--disable
171
192
shortvar
193
+ %{read-strings:javascript_files.txt}
172
194
%{dep:toplevel.bc}
173
195
-o
174
196
%{targets})))
You can’t perform that action at this time.
0 commit comments