Skip to content

Commit 756b762

Browse files
Use exe/rbwasm instead of bundle-installed one
1 parent 3a169d2 commit 756b762

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rakelib/packaging.rake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
wasi_vfs = RubyWasm::WasiVfsProduct.new(File.join(Dir.pwd, "build"))
22
wasi_sdk = TOOLCHAINS["wasi-sdk"]
3+
def exe_rbwasm = File.expand_path(File.join(__dir__, "..", "exe", "rbwasm"))
4+
35
tools = {
4-
"WASI_VFS_CLI" => File.expand_path(File.join(__dir__, "..", "exe", "rbwasm")),
6+
"WASI_VFS_CLI" => exe_rbwasm,
57
"WASMOPT" => wasi_sdk.wasm_opt
68
}
79

@@ -11,7 +13,7 @@ def npm_pkg_build_command(pkg)
1113
[
1214
"bundle",
1315
"exec",
14-
"rbwasm",
16+
exe_rbwasm,
1517
"build",
1618
"--ruby-version",
1719
pkg[:ruby_version],

0 commit comments

Comments
 (0)