summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2021-01-13 16:05:39 +0100
committerChristophe Lyon <christophe.lyon@foss.st.com>2021-07-06 13:11:44 +0000
commit794c90bcac29dff951c4302e1a20f767c471e276 (patch)
treed0b23d73d14e6feb2ae2e2909412aa44ca4a7de3
parent1a073ec9c64f5f40418efc8b22945ebaa8d58014 (diff)
build-cross-gcc.sh: Fix support for gcc3_only and check_only
-rwxr-xr-xbuild-cross-gcc.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/build-cross-gcc.sh b/build-cross-gcc.sh
index 5950fcb..e44d895 100755
--- a/build-cross-gcc.sh
+++ b/build-cross-gcc.sh
@@ -740,6 +740,18 @@ if test "${do_check:-yes}" = "yes"; then
fi
fi
+case "${languages}" in
+ *gnat*)
+ CC=gcc-4.6
+ ;;
+ *)
+ CC=gcc
+ ;;
+esac
+echo "GCC version: "
+$CC --version
+
+
if [ "$gcc3_only" != "yes" -a "$check_only" != "yes" ]
then
@@ -786,18 +798,6 @@ if test "${do_clean:-no}" = "yes"; then
rm -rf "${sysroot}"
fi
-case "${languages}" in
- *gnat*)
- CC=gcc-4.6
- ;;
- *)
- CC=gcc
- ;;
-esac
-echo "GCC version: "
-$CC --version
-
-
echo TRACE: BUILD BINUTILS `date`
cwd="$(pwd)"
mkdir -p "${objs}/binutils"