summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-24 08:25:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-24 08:25:36 +0000
commit7184e03eb259b31a1e2fda200e63924ec4a041b3 (patch)
tree536a8012f1ae13604789330a09abb0fea8187bb7 /lib
parent6a3a7e9114c3ede47d15f0d2a73f392cfcdd1ea7 (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb1
1 files changed, 1 insertions, 0 deletions
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