mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-19 03:06:42 +00:00
use ${CT_${cc}_VERSION} to show a compiler version
Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>
This commit is contained in:
parent
521d6c1782
commit
09151040fb
@ -113,7 +113,7 @@ dump_single_sample() {
|
|||||||
printf " %-*s : %s\n" ${width} "binutils" "binutils-${CT_BINUTILS_VERSION}"
|
printf " %-*s : %s\n" ${width} "binutils" "binutils-${CT_BINUTILS_VERSION}"
|
||||||
printf " %-*s :" ${width} "C compilers"
|
printf " %-*s :" ${width} "C compilers"
|
||||||
cc=$(echo ${CT_CC} | ${awk} '{ print toupper($0)}')
|
cc=$(echo ${CT_CC} | ${awk} '{ print toupper($0)}')
|
||||||
version=$(eval echo \${CT_CC_${cc}_VERSION})
|
version=$(eval echo \${CT_${cc}_VERSION})
|
||||||
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
|
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
|
||||||
printf " $compiler-$version"
|
printf " $compiler-$version"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
@ -162,7 +162,7 @@ dump_single_sample() {
|
|||||||
printf "| ${CT_BINUTILS_VERSION} "
|
printf "| ${CT_BINUTILS_VERSION} "
|
||||||
printf "| "
|
printf "| "
|
||||||
cc=$(echo ${CT_CC} | ${awk} '{ print toupper($0)}')
|
cc=$(echo ${CT_CC} | ${awk} '{ print toupper($0)}')
|
||||||
version=$(eval echo \${CT_CC_${cc}_VERSION})
|
version=$(eval echo \${CT_${cc}_VERSION})
|
||||||
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
|
compiler=$(echo $cc | ${awk} '{print tolower($0)}')
|
||||||
printf " $compiler | $version"
|
printf " $compiler | $version"
|
||||||
printf " "
|
printf " "
|
||||||
|
Loading…
Reference in New Issue
Block a user