aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-04 06:37:09 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-04 06:37:09 +0000
commitc679eb1ca96ad9b29a39a57cbff8492f817cb698 (patch)
treeec869310d8f00d695b252fe0f695b8a00dae9bdb
parent66a49e0d7445110d4329fff54efbb214faae3006 (diff)
downloadruby-c679eb1ca96ad9b29a39a57cbff8492f817cb698.tar.gz
* configure.in: Add compiler version message into rbconfig
as RbConfig::CONFIG['CC_VERSION_MESSAGE']. [Feature #12896] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--configure.in2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 895e9ed65f..2e7b19f438 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Nov 4 15:31:00 2016 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: Add compiler version message into rbconfig
+ as RbConfig::CONFIG['CC_VERSION_MESSAGE']. [Feature #12896]
+
Fri Nov 4 13:03:00 2016 Kenta Murata <mrkn@mrkn.jp>
* numeric.c (rb_int_digits): Fix exception message
diff --git a/configure.in b/configure.in
index 3734afae24..6793d7d2e0 100644
--- a/configure.in
+++ b/configure.in
@@ -536,8 +536,10 @@ for option in --version -v -V -qversion; do
AS_CASE($cc_version_status, [0], [:], [continue])
AS_CASE($cc_version_message, [*Warning*], [continue])
cc_version='$(CC) '$option
+ break
done
AC_SUBST(CC_VERSION, $cc_version)
+AC_SUBST(CC_VERSION_MESSAGE, $cc_version_message)
RUBY_UNIVERSAL_ARCH
if test "$target_cpu" != "$host_cpu" -a "$GCC" = yes -a "$cross_compiling" = no -a "$universal_binary" = no; then