[前][次][番号順一覧][スレッド一覧]

ruby-changes:38152

From: nobu <ko1@a...>
Date: Sat, 11 Apr 2015 22:49:18 +0900 (JST)
Subject: [ruby-changes:38152] nobu:r50233 (trunk): mkmf.rb: fix VC failures

nobu	2015-04-11 22:49:02 +0900 (Sat, 11 Apr 2015)

  New Revision: 50233

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50233

  Log:
    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.

  Modified files:
    trunk/lib/mkmf.rb
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 50232)
+++ lib/mkmf.rb	(revision 50233)
@@ -387,8 +387,9 @@ module MakeMakefile https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L387
       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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]