1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Show gcc version if too old, and move to GCC block [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-06-18 13:40:46 +09:00
parent e77d2c296e
commit e711711539
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -370,14 +370,14 @@ AS_IF([test "$GCC" = yes], [
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