diff options
author | 2021-02-26 08:44:35 +0000 | |
---|---|---|
committer | 2021-02-26 08:44:35 +0000 | |
commit | 47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc (patch) | |
tree | 665929050532a6e379170eb13abb581127f03fb3 | |
parent | gcc-config: clarify comment around index number choice (diff) | |
download | gcc-config-47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc.tar.gz gcc-config-47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc.tar.bz2 gcc-config-47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc.zip |
gcc-config: clarify comment around profile version selection
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-x | gcc-config | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1080,12 +1080,12 @@ for x in "$@" ; do die "Could not locate profile #$x !" fi else - # User gave us a full HOST-gccver + # User gave us a full <CTARGET-version> or <version> x=${x##*/} if [[ ${DOIT} == "get_current_profile" && -z $(ls "${GCC_ENV_D}"/${x}-* 2>/dev/null) ]] || \ [[ ${DOIT} != "get_current_profile" && ! -f ${GCC_ENV_D}/${x} ]] then - # Maybe they just gave us a gccver ... + # Maybe they just gave us a <version>. Infer <CTARGET>. get_chost if [[ -f ${GCC_ENV_D}/${CHOST}-${x} ]] ; then x=${CHOST}-${x} |