xcompile: Add XGCCPATH to clang compiler

The XGCCPATH prefix is on all the other tools and compilers,
so add it to clang as well, so it can be found correctly.

Change-Id: Ibc250a81433f37bbb0555d32605aebe3a68aaf40
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/12839
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Martin Roth 2016-01-05 14:30:22 -07:00
parent 03f7a49f5a
commit 51d4de818d
1 changed files with 2 additions and 2 deletions

View File

@ -343,14 +343,14 @@ test_architecture() {
fi
for clang_arch in $TCLIST invalid; do
testcc "clang" "-target ${clang_arch}-$TABI -c" && break
testcc "${XGCCPATH}clang" "-target ${clang_arch}-$TABI -c" && break
done
if [ "invalid" != "$clang_arch" ]; then
# FIXME: this may break in a clang && !gcc configuration,
# but that's more of a clang limitation. Let's be optimistic
# that this will change in the future.
CLANG="clang -target ${clang_arch}-${TABI} -ccc-gcc-name ${GCC}"
CLANG="${XGCCPATH}clang -target ${clang_arch}-${TABI} -ccc-gcc-name ${GCC}"
fi
}