From f168f23f824a6c048fa888a6e8b71990565fedb5 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 10 Apr 2015 13:36:59 +0000 Subject: [PATCH] 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 --- lib/mkmf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mkmf.rb b/lib/mkmf.rb index eb95beb2c3..014e7ed53b 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -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)