aboutsummaryrefslogtreecommitdiff
path: root/util/crossgcc/buildgcc
diff options
context:
space:
mode:
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-xutil/crossgcc/buildgcc11
1 files changed, 6 insertions, 5 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index a5d4159997..b388afbebe 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -854,7 +854,7 @@ esac
case "$PACKAGE" in
GCC|gcc)
- echo "Target architecture is now $TARGETARCH"
+ echo "Target architecture is $TARGETARCH"
NAME="${TARGETARCH} cross GCC"
PACKAGES="GMP MPFR MPC LIBELF BINUTILS GCC"
;;
@@ -867,7 +867,8 @@ case "$PACKAGE" in
fi
;;
CLANG|clang)
- NAME=clang
+ NAME="LLVM clang"
+ LLVM_VERSION=${CLANG_VERSION}
PACKAGES="CMAKE LLVM CFE CRT CTE"
CMAKE=${DESTDIR}${TARGETDIR}/bin/cmake
;;
@@ -913,11 +914,11 @@ searchtool xz "XZ Utils" "" "xz-utils" > /dev/null
if searchtool wget "GNU" nofail > /dev/null; then
download_showing_percentage() {
url=$1
- printf " ..${red} 0%%"
+ printf "... ${red} 0%%"
wget $url 2>&1 | while read line; do
echo $line | grep -o "[0-9]\+%" | awk '{printf("\b\b\b\b%4s", $1)}'
done
- printf "${NC}"
+ printf "${NC}\n"
}
elif searchtool curl "^curl " > /dev/null; then
download_showing_percentage() {
@@ -1035,4 +1036,4 @@ cp "$PROGNAME" "$DESTDIR$TARGETDIR/share/$PROGNAME-$CROSSGCC_VERSION-$CROSGCC_CO
cleanup
-printf "\n${green}You can now run your $NAME toolchain from $TARGETDIR.${NC}\n"
+printf "\n${green}You can now run $NAME from $TARGETDIR.${NC}\n"