From 42e149c9ad5297b2cb507bfe56318fcae432cf55 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 11 Apr 2015 13:49:02 +0000 Subject: 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 --- lib/mkmf.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 86fc49155a..044d72777a 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -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 -- cgit v1.2.3