Skip to content

Commit 0508bfb

Browse files
Run rbwasm under bundle exec for non-CM builds
to integrate with Bundler in-process
1 parent b428456 commit 0508bfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rakelib/packaging.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,16 @@ namespace :npm do
8080
mkdir_p dist_dir
8181
if pkg[:target].start_with?("wasm32-unknown-wasi")
8282
Dir.chdir(cwd || base_dir) do
83+
sh "bundle", "install"
8384

8485
sh env,
86+
"bundle", "exec",
8587
*build_command,
8688
"--no-stdlib",
8789
"-o",
8890
File.join(dist_dir, "ruby.wasm")
8991
sh env,
92+
"bundle", "exec",
9093
*build_command,
9194
"-o",
9295
File.join(dist_dir, "ruby.debug+stdlib.wasm")

0 commit comments

Comments
 (0)