1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

DEBUG: dump mkmf.log

This commit is contained in:
Nobuyoshi Nakada 2019-09-19 12:03:58 +09:00
parent 2d1e3bd8f1
commit 69e209a345
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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)