Skip to content

Commit 2187643

Browse files
Fix paralell execution for check:bindgen
1 parent a4f74ef commit 2187643

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tasks/check.rake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
namespace :check do
22
wit_bindgen = RubyWasm::WitBindgen.new(build_dir: "build")
3-
task :bindgen_c do
3+
task :install_wit_bindgen do
44
wit_bindgen.install
5+
end
6+
task :bindgen_c => :install_wit_bindgen do
57
wits = [
68
["ext/witapi/bindgen/rb-abi-guest.wit", "--export"],
79
["ext/js/bindgen/rb-js-abi-host.wit", "--import"],
@@ -12,8 +14,7 @@ namespace :check do
1214
end
1315
end
1416

15-
task :bindgen_js do
16-
wit_bindgen.install
17+
task :bindgen_js => :install_wit_bindgen do
1718
sh *[
1819
wit_bindgen.bin_path, "host", "js",
1920
"--import", "ext/witapi/bindgen/rb-abi-guest.wit",

0 commit comments

Comments
 (0)