ruby-changes:72226
From: Nobuyoshi <ko1@a...>
Date: Sat, 18 Jun 2022 13:41:30 +0900 (JST)
Subject: [ruby-changes:72226] e711711539 (master): Show gcc version if too old, and move to GCC block [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=e711711539 From e7117115399981e1258ca6301e76cc3a24c509e7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 18 Jun 2022 13:40:46 +0900 Subject: Show gcc version if too old, and move to GCC block [ci skip] --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index fb6fd62664..cb9dea3c77 100644 --- a/configure.ac +++ b/configure.ac @@ -370,14 +370,14 @@ AS_IF([test "$GCC" = yes], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L370 icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///;/^__ICC/d'` test -n "$icc_version" || icc_version=0 # RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"]) + + AS_IF([test "$gcc_major" -lt 3], [ + AC_MSG_ERROR([too old GCC: $gcc_major.$gcc_minor]) + ]) ], [ linker_flag= ]) -AS_IF([test "$GCC" = yes -a "$gcc_major" -lt 3 ], [ - AC_MSG_ERROR([too old GCC]) -]) - RUBY_PROG_GNU_LD RUBY_CPPOUTFILE -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/