Project

General

Profile

Actions

Feature #12896

closed

Add compiler version message into rbconfig

Added by naruse (Yui NARUSE) over 7 years ago. Updated over 7 years ago.

Status:
Closed
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
Actions

Also available in: Atom PDF

Like0
Like0