mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 08:55:35 +08:00
* ext/date/extconf.rb: try_cflags("-std=iso9899:1999") [Bug #10906]
ruby itself (including numeric.c) is built with strict compile
options including -std=iso9899:1999, but ext/date is not.
By the way -std=iso9899:1999 is not only a warning option but also
changes behavior like MACRO definitions for example INFINITY.
gcc on Solaris affect this.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@51553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
6 lines
123 B
Ruby
6 lines
123 B
Ruby
require 'mkmf'
|
|
if try_cflags("-std=iso9899:1999")
|
|
$CFLAGS += " " << "-std=iso9899:1999"
|
|
end
|
|
create_makefile('date_core')
|