Actions
Feature #12896
closedAdd compiler version message into rbconfig
Status:
Closed
Assignee:
-
Target version:
-
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
Like0
Like0