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:
parent
66c644da5e
commit
df3fd50717
2 changed files with 5 additions and 8 deletions
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
cxx = MakeMakefile["C++"]
|
cxx = MakeMakefile["C++"]
|
||||||
|
|
||||||
begin
|
|
||||||
ok = cxx.try_compile(<<~'begin', "") do |x|
|
ok = cxx.try_compile(<<~'begin', "") do |x|
|
||||||
#include "ruby/config.h"
|
#include "ruby/config.h"
|
||||||
|
|
||||||
|
@ -21,11 +20,7 @@ begin
|
||||||
# subject we are going to test in this extension library.
|
# subject we are going to test in this extension library.
|
||||||
x.sub! %<#include "ruby.h">, ''
|
x.sub! %<#include "ruby.h">, ''
|
||||||
end
|
end
|
||||||
rescue
|
|
||||||
end
|
|
||||||
|
|
||||||
if ok
|
if ok
|
||||||
create_makefile("-test-/cxxanyargs")
|
create_makefile("-test-/cxxanyargs")
|
||||||
else
|
|
||||||
File.write("Makefile", "all:\n\tcat mkmf.log\n")
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -271,9 +271,11 @@ def extmake(target, basedir = 'ext', maybestatic = true)
|
||||||
ensure
|
ensure
|
||||||
Logging::log_close
|
Logging::log_close
|
||||||
if error
|
if error
|
||||||
STDERR.print("#{message}\n\t#{error.backtrace.join("\n\t")}\n")
|
begin
|
||||||
if File.exist?("mkmf.log")
|
if File.exist?("mkmf.log")
|
||||||
IO.copy_stream("mkmf.log", STDERR)
|
IO.copy_stream("mkmf.log", STDERR)
|
||||||
|
end
|
||||||
|
rescue SystemCallError
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if rbconfig0
|
if rbconfig0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue