Removed mkmf.log dump in Makefile
This commit is contained in:
parent
66c644da5e
commit
df3fd50717
@ -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
|
||||
|
@ -271,10 +271,12 @@ def extmake(target, basedir = 'ext', maybestatic = true)
|
||||
ensure
|
||||
Logging::log_close
|
||||
if error
|
||||
STDERR.print("#{message}\n\t#{error.backtrace.join("\n\t")}\n")
|
||||
begin
|
||||
if File.exist?("mkmf.log")
|
||||
IO.copy_stream("mkmf.log", STDERR)
|
||||
end
|
||||
rescue SystemCallError
|
||||
end
|
||||
end
|
||||
if rbconfig0
|
||||
RbConfig.module_eval {
|
||||
|
Loading…
x
Reference in New Issue
Block a user