From 7184e03eb259b31a1e2fda200e63924ec4a041b3 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 24 Jan 2018 08:25:36 +0000 Subject: [PATCH] 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mkmf.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mkmf.rb b/lib/mkmf.rb index c52a66643a..773cf9b7e7 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -657,6 +657,7 @@ MSG end def try_ldflags(flags, opts = {}) + opts = {:werror => true}.update(opts) if $mswin try_link(MAIN_DOES_NOTHING, flags, opts) end