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

ruby-changes:38135

From: nobu <ko1@a...>
Date: Fri, 10 Apr 2015 22:37:19 +0900 (JST)
Subject: [ruby-changes:38135] nobu:r50216 (trunk): mkmf.rb: werror of try_cppflags

nobu	2015-04-10 22:36:59 +0900 (Fri, 10 Apr 2015)

  New Revision: 50216

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

  Log:
    mkmf.rb: werror of try_cppflags
    
    * lib/mkmf.rb (try_cppflags): set werror flag as same as cflags
      and ldflags.

  Modified files:
    trunk/lib/mkmf.rb
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 50215)
+++ lib/mkmf.rb	(revision 50216)
@@ -609,8 +609,8 @@ MSG https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L609
     $CPPFLAGS = cppflags unless ret
   end
 
-  def try_cppflags(flags)
-    try_header(MAIN_DOES_NOTHING, flags)
+  def try_cppflags(flags, opts = {})
+    try_header(MAIN_DOES_NOTHING, flags, {:werror => true}.update(opts))
   end
 
   def with_cflags(flags)

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

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