summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-19 12:03:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-19 12:03:58 +0900
commit69e209a3450bd6b281dcad1d96a34e9cab184845 (patch)
tree2f533666f7f12fe680dcf0ae74f1d1507880b8e7 /ext/extmk.rb
parent2d1e3bd8f1448ef55d3e1bda8dc0855ae995d659 (diff)
DEBUG: dump mkmf.log
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 6045750..1480ad6 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -270,6 +270,12 @@ def extmake(target, basedir = 'ext', maybestatic = true)
end
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)
+ end
+ end
if rbconfig0
RbConfig.module_eval {
remove_const(:CONFIG)