1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

mkmf.rb: fix VC failures

* lib/mkmf.rb (xsystem): assume all warnings go to stderr but not
  stdout.  cl.exe always prints input file names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-04-11 13:49:02 +00:00
parent 7c9e01d3c8
commit 42e149c9ad

View file

@ -387,8 +387,9 @@ module MakeMakefile
if opts and opts[:werror]
result = nil
Logging.postpone do |log|
result = (system(libpath_env, command) and File.zero?(log.path))
""
output = IO.popen(libpath_env, command, &:read)
result = ($?.success? and File.zero?(log.path))
output
end
result
else