summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index bce02f8624..c40da1a4f3 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -854,7 +854,7 @@ module RbInstall
end
def build_extensions
- end if /mswin|mingw/ =~ RUBY_PLATFORM
+ end if /mswin|mingw/ =~ RUBY_PLATFORM || RbConfig::CONFIG["CROSS_COMPILING"] == "yes"
def shebang(bin_file_name)
path = File.join(gem_dir, spec.bindir, bin_file_name)