aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 13:49:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-11 13:49:02 +0000
commit42e149c9ad5297b2cb507bfe56318fcae432cf55 (patch)
treea1b5f0db9c6834be46e2540906b11c7f409c4bdf /lib/mkmf.rb
parent7c9e01d3c84349ae973ab127c975d02d20b6aaec (diff)
downloadruby-42e149c9ad5297b2cb507bfe56318fcae432cf55.tar.gz
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
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb5
1 files changed, 3 insertions, 2 deletions
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