1 |
commit: 47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 26 08:44:35 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 26 08:44:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=47ccdd7e |
7 |
|
8 |
gcc-config: clarify comment around profile version selection |
9 |
|
10 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
11 |
|
12 |
gcc-config | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/gcc-config b/gcc-config |
16 |
index 1a58c56..594c7d2 100755 |
17 |
--- a/gcc-config |
18 |
+++ b/gcc-config |
19 |
@@ -1080,12 +1080,12 @@ for x in "$@" ; do |
20 |
die "Could not locate profile #$x !" |
21 |
fi |
22 |
else |
23 |
- # User gave us a full HOST-gccver |
24 |
+ # User gave us a full <CTARGET-version> or <version> |
25 |
x=${x##*/} |
26 |
if [[ ${DOIT} == "get_current_profile" && -z $(ls "${GCC_ENV_D}"/${x}-* 2>/dev/null) ]] || \ |
27 |
[[ ${DOIT} != "get_current_profile" && ! -f ${GCC_ENV_D}/${x} ]] |
28 |
then |
29 |
- # Maybe they just gave us a gccver ... |
30 |
+ # Maybe they just gave us a <version>. Infer <CTARGET>. |
31 |
get_chost |
32 |
if [[ -f ${GCC_ENV_D}/${CHOST}-${x} ]] ; then |
33 |
x=${CHOST}-${x} |