Skip to content

Commit 5970dd2

Browse files
Skip Bundler settings when not using bundle exec
1 parent 3b1375f commit 5970dd2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/ruby_wasm/cli.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ def build(args)
122122
end
123123
.parse!(args)
124124

125-
__skip__ = Bundler.settings.temporary(force_ruby_platform: true) do
125+
__skip__ = if defined?(Bundler)
126+
Bundler.settings.temporary(force_ruby_platform: true) do
127+
do_build_with_force_ruby_platform(options)
128+
end
129+
else
126130
do_build_with_force_ruby_platform(options)
127131
end
128132
end

0 commit comments

Comments
 (0)