Project

General

Profile

Feature #12896

Add compiler version message into rbconfig

Added by naruse (Yui NARUSE) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:77903]

Description

When a extension library developer receives bug reports, they sometimes want to know what compiler is used for building the ruby binary.
We can already know its compiler option but cannot know compiler name and version.

diff --git a/configure.in b/configure.in
index 3734afa..6793d7d 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

Associated revisions

Revision 25728a19
Added by naruse (Yui NARUSE) about 3 years ago

  • 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

Revision 56556
Added by naruse (Yui NARUSE) about 3 years ago

  • configure.in: Add compiler version message into rbconfig as RbConfig::CONFIG['CC_VERSION_MESSAGE']. [Feature #12896]

Revision 56556
Added by naruse (Yui NARUSE) about 3 years ago

  • configure.in: Add compiler version message into rbconfig as RbConfig::CONFIG['CC_VERSION_MESSAGE']. [Feature #12896]

Revision 56556
Added by naruse (Yui NARUSE) about 3 years ago

  • configure.in: Add compiler version message into rbconfig as RbConfig::CONFIG['CC_VERSION_MESSAGE']. [Feature #12896]

Revision 56556
Added by naruse (Yui NARUSE) about 3 years ago

  • configure.in: Add compiler version message into rbconfig as RbConfig::CONFIG['CC_VERSION_MESSAGE']. [Feature #12896]

History

#1

Updated by naruse (Yui NARUSE) about 3 years ago

  • Status changed from Open to Closed

Applied in changeset r56556.


  • configure.in: Add compiler version message into rbconfig as RbConfig::CONFIG['CC_VERSION_MESSAGE']. [Feature #12896]

Also available in: Atom PDF