mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
de4f844b85
commit
bc08e66607
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue