From bc08e66607f883acd2b4da3eba32b54ab43426aa Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 18 Jun 2017 01:15:36 +0000 Subject: capi/spec_helper.rb: suppress logo * spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): suppress logo of nmake.exe to stderr. we want to show compiler warnings only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/rubyspec/optional/capi/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/rubyspec/optional/capi/spec_helper.rb b/spec/rubyspec/optional/capi/spec_helper.rb index 3d8cb296a6..5dcb6aceac 100644 --- a/spec/rubyspec/optional/capi/spec_helper.rb +++ b/spec/rubyspec/optional/capi/spec_helper.rb @@ -57,6 +57,10 @@ def compile_extension(name) make = ENV['MAKE'] make ||= (RbConfig::CONFIG['host_os'].include?("mswin") ? "nmake" : "make") + if File.basename(make, ".*") == "nmake" + # suppress logo of nmake.exe to stderr + ENV["MAKEFLAGS"] = "l#{ENV["MAKEFLAGS"]}" + end # Do not capture stderr as we want to show compiler warnings output = IO.popen([make, "V=1", "DESTDIR=", close_others: false], &:read) -- cgit v1.2.3