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++"]
|
||||
|
||||
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,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue