aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 9c0a4fa1ff..0f4804c94d 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -699,9 +699,14 @@ end
install?(:ext, :arch, :gem, :'default-gems', :'default-gems-arch') do
install_default_gem('ext', srcdir) do |path|
# assume that gemspec and extconf.rb are placed in the same directory
- IO.foreach(File.dirname(path[(srcdir.size+1)..-1]) + "/Makefile") do |l|
- break true if /^TARGET\s*=/ =~ l
+ success = false
+ begin
+ IO.foreach(File.dirname(path[(srcdir.size+1)..-1]) + "/Makefile") do |l|
+ break success = true if /^TARGET\s*=/ =~ l
+ end
+ rescue Errno::ENOENT
end
+ success
end
end