mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
6a3a7e9114
commit
7184e03eb2
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue