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

ruby-changes:49906

From: nobu <ko1@a...>
Date: Wed, 24 Jan 2018 17:25:43 +0900 (JST)
Subject: [ruby-changes:49906] nobu:r62024 (trunk): mkmf.rb: werror on mswin

nobu	2018-01-24 17:25:36 +0900 (Wed, 24 Jan 2018)

  New Revision: 62024

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

  Log:
    mkmf.rb: werror on mswin
    
    * lib/mkmf.rb (MakeMakefile#try_ldflags): enable warning checking
      on mswin, link.exe warns -l options but does not fail.
      [Bug #13069]

  Modified files:
    trunk/lib/mkmf.rb
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 62023)
+++ lib/mkmf.rb	(revision 62024)
@@ -657,6 +657,7 @@ MSG https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L657
   end
 
   def try_ldflags(flags, opts = {})
+    opts = {:werror => true}.update(opts) if $mswin
     try_link(MAIN_DOES_NOTHING, flags, opts)
   end
 

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

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