Mk/bsd.gcc.mk: Adjust to the release of GCC 11

Now that GCC 11.1 has been released and lang/gcc11 is in place,
have USE_GCC=11 use that instead of lang/gcc11-devel.

In addition add support for USE_GCC=12 which uses lang/gcc12-devel
(still in early development, not recommended for production use).
This commit is contained in:
Gerald Pfeifer 2021-06-21 07:25:53 +00:00
parent 73bbda9c12
commit 8e7d39df85

View File

@ -44,7 +44,7 @@ GCC_Include_MAINTAINER= gerald@FreeBSD.org
# All GCC versions supported by this framework.
#
# When updating this, keep Mk/bsd.default-versions.mk in sync.
GCCVERSIONS= 4.8 7 8 9 10 11
GCCVERSIONS= 4.8 7 8 9 10 11 12
# No configurable parts below this. ####################################
#
@ -106,7 +106,7 @@ _USE_GCC:= ${GCC_DEFAULT}
# A concrete version has been selected. Set proper ports dependencies,
# CC, CXX, CPP, and flags.
V:= ${_USE_GCC:S/.//}
. if ${V} == 11
. if ${V} == 12
_GCC_PORT:= gcc${V}-devel
. else
_GCC_PORT:= gcc${V}