1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* configure.in: Consider error messages to find out version option of

C compiler.
  The C compiler of Sun Studio C emits "Warning: Option -qversion
  passed to ld, if ld is invoked, ignored otherwise" and exit
  successfully.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-05-17 09:10:16 +00:00
parent baa65ad108
commit fbe45fdfa2
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,11 @@
Fri May 17 18:06:15 2013 Tanaka Akira <akr@fsij.org>
* configure.in: Consider error messages to find out version option of
C compiler.
The C compiler of Sun Studio C emits "Warning: Option -qversion
passed to ld, if ld is invoked, ignored otherwise" and exit
successfully.
Fri May 17 17:34:48 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> Fri May 17 17:34:48 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (rb_gc_guarded_ptr): unoptimize on other compilers than gcc and * gc.c (rb_gc_guarded_ptr): unoptimize on other compilers than gcc and

View file

@ -439,7 +439,10 @@ AC_SUBST(COUTFLAG)
cc_version= cc_version=
for option in --version -v -V -qversion; do for option in --version -v -V -qversion; do
$CC $option > /dev/null 2>&1 || continue cc_version_message=`$CC $option 2>&1`
cc_version_status=$?
AS_CASE($cc_version_status, [0], [:], [continue])
AS_CASE($cc_version_message, [*Warning*], [continue])
cc_version='$(CC) '$option cc_version='$(CC) '$option
done done
AC_SUBST(CC_VERSION, $cc_version) AC_SUBST(CC_VERSION, $cc_version)