mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
14d10e054f
commit
54264f534a
4 changed files with 13 additions and 4 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue