From 51d4de818dfd92ab7a17c473fd4c5b6bd32837f8 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 5 Jan 2016 14:30:22 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/12839 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/xcompile/xcompile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/xcompile') diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 3535793542..bce81698d5 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 } -- cgit v1.2.3