diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-10 02:44:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-10 02:44:12 +0000 |
commit | 54264f534a33abde00a7297d54f75e5cc1dee934 (patch) | |
tree | 1e94619e3ef3c67070261ca24186ce18c6ee19dd /ext | |
parent | 14d10e054ff451f26b5e4ad658f8e44b2d0fa8dd (diff) | |
download | ruby-54264f534a33abde00a7297d54f75e5cc1dee934.tar.gz |
ext/date: reject unknown compiler option
* ext/date/extconf.rb: check warnings.
* lib/mkmf.rb (try_cflags): pass options to try_compile.
* win32/Makefile.sub (WERRORFLAG): make unknown command line
options an error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb index 6f479eaa26..cb346dfcd9 100644 --- a/ext/date/extconf.rb +++ b/ext/date/extconf.rb @@ -1,5 +1,5 @@ require 'mkmf' -if try_cflags("-std=iso9899:1999") +if try_cflags("-std=iso9899:1999", :werror => true) $CFLAGS += " " << "-std=iso9899:1999" end create_makefile('date_core') |