1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

mkmf.rb: werror of try_cppflags

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-04-10 13:36:59 +00:00
parent aceb11dff4
commit f168f23f82

View file

@ -609,8 +609,8 @@ MSG
$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)