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

Removed mkmf.log dump in Makefile

This commit is contained in:
Nobuyoshi Nakada 2019-09-19 12:23:55 +09:00
parent 66c644da5e
commit df3fd50717
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
2 changed files with 5 additions and 8 deletions

View file

@ -2,7 +2,6 @@
cxx = MakeMakefile["C++"]
begin
ok = cxx.try_compile(<<~'begin', "") do |x|
#include "ruby/config.h"
@ -21,11 +20,7 @@ begin
# subject we are going to test in this extension library.
x.sub! %<#include "ruby.h">, ''
end
rescue
end
if ok
create_makefile("-test-/cxxanyargs")
else
File.write("Makefile", "all:\n\tcat mkmf.log\n")
end

View file

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