diff options
author | gerald <gerald@FreeBSD.org> | 2013-03-29 19:26:14 +0800 |
---|---|---|
committer | gerald <gerald@FreeBSD.org> | 2013-03-29 19:26:14 +0800 |
commit | 9b1e7bfec3d22c41f6c29f2c50691257d0bf7ecc (patch) | |
tree | 248e50757cea58a7c6b169cc9ddcc77ddb74c0c4 /Mk | |
parent | a79aac9d9177a527774b65e000a41173863b165f (diff) | |
download | freebsd-ports-gnome-9b1e7bfec3d22c41f6c29f2c50691257d0bf7ecc.tar.gz freebsd-ports-gnome-9b1e7bfec3d22c41f6c29f2c50691257d0bf7ecc.tar.zst freebsd-ports-gnome-9b1e7bfec3d22c41f6c29f2c50691257d0bf7ecc.zip |
Merge two loops and initialize _GCC_FOUND${v} and check whether USE_GCC
points to a valid version in parallel.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gcc.mk | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/Mk/bsd.gcc.mk b/Mk/bsd.gcc.mk index 09476fbf5c3a..5ef0197089a4 100644 --- a/Mk/bsd.gcc.mk +++ b/Mk/bsd.gcc.mk @@ -129,20 +129,8 @@ _GCC_ORLATER:= true . endif # ${USE_GCC} == any -# Check if USE_GCC points to a valid version. -.for v in ${GCCVERSIONS} -. if ${_USE_GCC}==${_GCCVERSION_${v}_V} -_GCCVERSION_OKAY= true; -. endif -.endfor - -.if !defined(_GCCVERSION_OKAY) -IGNORE= Unknown version of GCC specified (USE_GCC=${USE_GCC}) -.endif - -# -# Initialize _GCC_FOUND${v}. -# +# Initialize _GCC_FOUND${v}. In parallel, check if USE_GCC points to a +# valid version to begin with. .for v in ${GCCVERSIONS} . if exists(${LOCALBASE}/bin/gcc${_GCCVERSION_${v}_V:S/.//}) _GCC_FOUND${v}= port @@ -151,8 +139,15 @@ _GCC_FOUND${v}= port _GCC_FOUND${v}= base . endif . endif +. if ${_USE_GCC}==${_GCCVERSION_${v}_V} +_GCCVERSION_OKAY= true +. endif .endfor +.if !defined(_GCCVERSION_OKAY) +IGNORE= Unknown version of GCC specified (USE_GCC=${USE_GCC}) +.endif + # If the GCC package defined in USE_GCC does not exist, but a later # version is allowed (for example 4.2+), see if there is a later. # First check if the base installed version is good enough, otherwise |