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

ruby-changes:46993

From: nobu <ko1@a...>
Date: Sun, 18 Jun 2017 10:15:43 +0900 (JST)
Subject: [ruby-changes:46993] nobu:r59109 (trunk): capi/spec_helper.rb: suppress logo

nobu	2017-06-18 10:15:36 +0900 (Sun, 18 Jun 2017)

  New Revision: 59109

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

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

  Modified files:
    trunk/spec/rubyspec/optional/capi/spec_helper.rb
Index: spec/rubyspec/optional/capi/spec_helper.rb
===================================================================
--- spec/rubyspec/optional/capi/spec_helper.rb	(revision 59108)
+++ spec/rubyspec/optional/capi/spec_helper.rb	(revision 59109)
@@ -57,6 +57,10 @@ def compile_extension(name) https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/spec_helper.rb#L57
 
       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)

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

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