diff options
Diffstat (limited to 'ext/date/extconf.rb')
| -rw-r--r-- | ext/date/extconf.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb index 8938df13b3..8a1467df09 100644 --- a/ext/date/extconf.rb +++ b/ext/date/extconf.rb @@ -3,7 +3,11 @@ require 'mkmf' config_string("strict_warnflags") {|w| $warnflags += " #{w}"} -have_var("timezone", "time.h") -have_var("altzone", "time.h") +append_cflags("-Wno-compound-token-split-by-macro") if RUBY_VERSION < "2.7." +have_func("rb_category_warn") +with_werror("", {:werror => true}) do |opt, | + have_var("timezone", "time.h", opt) + have_var("altzone", "time.h", opt) +end create_makefile('date_core') |
