summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-19 12:23:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-19 12:25:48 +0900
commitdf3fd5071742397c7c5b908d0632f17aa79c2b51 (patch)
tree4713955db587bf62a6896239892f1dca8498d1bf /ext/extmk.rb
parent66c644da5e80258bb3217941223d923f923c3548 (diff)
Removed mkmf.log dump in Makefile
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 1480ad6..9d4abdc 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -271,9 +271,11 @@ def extmake(target, basedir = 'ext', maybestatic = true)
ensure
Logging::log_close
if error
- STDERR.print("#{message}\n\t#{error.backtrace.join("\n\t")}\n")
- if File.exist?("mkmf.log")
- IO.copy_stream("mkmf.log", STDERR)
+ begin
+ if File.exist?("mkmf.log")
+ IO.copy_stream("mkmf.log", STDERR)
+ end
+ rescue SystemCallError
end
end
if rbconfig0