summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-01-05 14:30:22 -0700
committerMartin Roth <martinroth@google.com>2016-01-07 17:10:58 +0100
commit51d4de818dfd92ab7a17c473fd4c5b6bd32837f8 (patch)
treeb6b1a58e91593b1c959a051b535db053d7f8e9e0 /util
parent03f7a49f5a745ee749ee0e3ea9e8b66ec2b0c731 (diff)
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>
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile4
1 files changed, 2 insertions, 2 deletions
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
}