зеркало из https://github.com/github/ruby.git
* configure.in: enable strict ANSI mode by default in case of GCC,
requested by _ko1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
aa56c127b5
Коммит
0284e64922
|
@ -1,3 +1,8 @@
|
|||
Tue Jun 12 18:39:59 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* configure.in: enable strict ANSI mode by default in case of GCC,
|
||||
requested by _ko1.
|
||||
|
||||
Tue Jun 12 06:40:23 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (rb_exec_fillarg): detect '#' as a meta character.
|
||||
|
|
|
@ -584,6 +584,7 @@ if test "$GCC:${warnflags+set}:no" = yes::no; then
|
|||
warnflags=
|
||||
fi
|
||||
if test "$GCC" = yes; then
|
||||
test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-ggdb3, [debugflags=-ggdb])}
|
||||
test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-ggdb, [debugflags=-ggdb])}
|
||||
test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-g3, [debugflags=-g3])}
|
||||
|
||||
|
@ -607,6 +608,12 @@ if test "$GCC" = yes; then
|
|||
RUBY_APPEND_OPTION(LDFLAGS, -fstack-protector)
|
||||
fi
|
||||
|
||||
# ANSI (no XCFLAGS because this is C only)
|
||||
RUBY_TRY_CFLAGS(-ansi -std=iso9899:199409, [
|
||||
RUBY_APPEND_OPTION(warnflags, -ansi -std=iso9899:199409)
|
||||
RUBY_APPEND_OPTION(rb_cv_warnflags, -ansi -std=iso9899:199409)
|
||||
])
|
||||
|
||||
# suppress annoying -Wstrict-overflow warnings
|
||||
RUBY_TRY_CFLAGS(-fno-strict-overflow, [RUBY_APPEND_OPTION(XCFLAGS, -fno-strict-overflow)])
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче