Finalize the streamlining of data structures holding version-specific
information in the light of us only encountering at most one version (GCC 4.2) in the base system these days.
This commit is contained in:
parent
4739b55c9a
commit
c03743e5b7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531883
1 changed files with 3 additions and 9 deletions
|
@ -34,13 +34,7 @@ GCC_Include_MAINTAINER= gerald@FreeBSD.org
|
|||
# All GCC versions supported by the ports framework. Keep them in
|
||||
# ascending order and in sync with the table below.
|
||||
# When updating this, keep Mk/bsd.default-versions.mk in sync.
|
||||
GCCVERSIONS= 040800 070000 080000 090000
|
||||
|
||||
# The right side is the version as USE_GCC uses it.
|
||||
_GCCVERSION_040800_V= 4.8
|
||||
_GCCVERSION_070000_V= 7
|
||||
_GCCVERSION_080000_V= 8
|
||||
_GCCVERSION_090000_V= 9
|
||||
GCCVERSIONS= 4.8 7 8 9
|
||||
|
||||
# No configurable parts below this. ####################################
|
||||
#
|
||||
|
@ -72,9 +66,9 @@ _GCC_ORLATER:= true
|
|||
# and save that into _GCC_FOUND. In parallel, check if USE_GCC refers
|
||||
# to a valid version to begin with.
|
||||
.for v in ${GCCVERSIONS}
|
||||
. if ${_USE_GCC}==${_GCCVERSION_${v}_V}
|
||||
. if ${_USE_GCC} == ${v}
|
||||
_GCCVERSION_OKAY= true
|
||||
. if exists(${LOCALBASE}/bin/gcc${_GCCVERSION_${v}_V:S/.//})
|
||||
. if exists(${LOCALBASE}/bin/gcc${v:S/.//})
|
||||
_GCC_FOUND:= ${_USE_GCC}
|
||||
. endif
|
||||
. endif
|
||||
|
|
Loading…
Reference in a new issue