Skip to content

Commit 5038767

Browse files
clear RUBYOPT to avoid loading unrelated bundle setup
1 parent e4de78e commit 5038767

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/ruby_wasm/build_system/product/crossruby.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ def do_extconf(crossruby)
6565
%Q('require_relative "#{@srcdir}/extconf.rb"'),
6666
"-I#{crossruby.build_dir}"
6767
]
68-
sh "#{crossruby.baseruby_path} #{extconf_args.join(" ")}", chdir: objdir
68+
# Clear RUBYOPT to avoid loading unrelated bundle setup
69+
sh ({ "RUBYOPT" => "" }),
70+
"#{crossruby.baseruby_path} #{extconf_args.join(" ")}",
71+
chdir: objdir
6972
end
7073

7174
def do_install_rb(crossruby)

0 commit comments

Comments
 (0)