commit: c952a087e482b7dfe067172754ce832f78aa8c80
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 26 08:50:36 2021 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Feb 26 08:50:36 2021 +0000
URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=c952a087
gcc-config: provide 'gcc-config --get-current-profile [CTARGET]' example
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
gcc-config | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc-config b/gcc-config
index 594c7d2..e8e3d58 100755
--- a/gcc-config
+++ b/gcc-config
@@ -45,6 +45,7 @@ GENTOO_LIBDIR="@GENTOO_LIBDIR@"
usage() {
cat <<-EOF
Usage: gcc-config [options] [CC Profile]
+ gcc-config [options] --get-current-profile [CTARGET]
Change the current compiler profile, or give info about profiles.
Options:
@@ -1080,7 +1081,7 @@ for x in "$@" ; do
die "Could not locate profile #$x !"
fi
else
- # User gave us a full <CTARGET-version> or
<version>
+ # User gave us a full <CTARGET-version>,
<CTARGET> 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} ]]