From 711658899a9399a2dc2a6798dc0ce4552d4d4077 Mon Sep 17 00:00:00 2001 From: Christian Holme Date: Tue, 26 Jun 2018 15:56:24 +0200 Subject: [PATCH] build.sh: check correct compiler Previously, build.sh checkd the version of `gcc`, picking whichever version of `gcc` comes first in a user's `PATH`. However, `tf_exports.sh` also allows setting a specific `gcc` path through the `GCC_HOST_COMPILER_PATH` variable. This commit changes `build.sh` to check the version of that compiler, instead of relying on `gcc` in the user's `PATH`. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 30e7df7de42..335294c241a 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/bash # Check for gcc version according to # https://unix.stackexchange.com/questions/285924/how-to-compare-a-programs-version-in-a-shell-script -currentgccver="$(gcc -dumpversion)" +currentgccver="$($GCC_HOST_COMPILER_PATH -dumpversion)" requiredgccver="5.0.0" OPTFLAG=""