summaryrefslogtreecommitdiff
path: root/ext/date/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/extconf.rb')
-rw-r--r--ext/date/extconf.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb
index a0c30fa948..8a1467df09 100644
--- a/ext/date/extconf.rb
+++ b/ext/date/extconf.rb
@@ -1,3 +1,13 @@
+# frozen_string_literal: true
require 'mkmf'
-append_cflags("-std=iso9899:1999")
+
+config_string("strict_warnflags") {|w| $warnflags += " #{w}"}
+
+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')