Project

General

Profile

Feature #12896

Add compiler version message into rbconfig

Added by naruse (Yui NARUSE) over 3 years ago. Updated over 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
#1

Updated by naruse (Yui NARUSE) over 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