Martin Roth (martinroth@google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/12839
-gerrit
commit a84fdf2a0a05f457a7953a9c883af8518d053dd6 Author: Martin Roth martinroth@google.com Date: Tue Jan 5 14:30:22 2016 -0700
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 --- util/xcompile/xcompile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 3535793..bce8169 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -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 }