Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
build/pkgs/gcc/spkg-configure.m4: Reject gcc (gnu) >= 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed May 11, 2020
1 parent a13e5e9 commit ca0d8a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/pkgs/gcc/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ SAGE_SPKG_CONFIGURE_BASE([gcc], [
fi
# Figuring out if we are using clang instead of gcc.
AC_LANG_PUSH(C)
AX_COMPILER_VENDOR()
IS_REALLY_GCC=no
if test "x$ax_cv_c_compiler_vendor" = xgnu ; then
IS_REALLY_GCC=yes
fi
AC_LANG_POP()
# Save the value of CXX without special flags to enable C++11 support
AS_VAR_SET([SAGE_CXX_WITHOUT_STD], [$CXX])
Expand Down Expand Up @@ -144,6 +146,11 @@ SAGE_SPKG_CONFIGURE_BASE([gcc], [
[[[0-3]].*|4.[[0-7]].*], [
# Install our own GCC if the system-provided one is older than gcc-4.8.
SAGE_SHOULD_INSTALL_GCC([you have $CXX version $GXX_VERSION, which is quite old])
],
[1?.*], [
# Install our own GCC if the system-provided one is newer than 9.x.
# See https://trac.sagemath.org/ticket/29456
SAGE_SHOULD_INSTALL_GCC([$CXX is g++ version $GXX_VERSION, which is too recent for this version of Sage])
])
fi
Expand Down

0 comments on commit ca0d8a4

Please sign in to comment.