Patrick Georgi has uploaded this change for review.

View Change

util/xcompile: Look for the host compiler in XGCCPATH, too (and first)

If there's a host compiler in XGCCPATH, it's likely the same
relatively-current version we use for coreboot, and it's a well-known
quantity, so let's prefer that over alternatives by default.

Change-Id: If50341df169a476899b5a5ffd4c4fb6d21c3f4ac
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
---
M util/xcompile/xcompile
1 file changed, 3 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/44/43144/1
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 6629546..388f878 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -56,7 +56,9 @@
IASL=iasl
fi

-if program_exists gcc; then
+if program_exists "${XGCCPATH}/gcc"; then
+ HOSTCC="${XGCCPATH}/gcc"
+elif program_exists gcc; then
HOSTCC=gcc
elif program_exists cc; then
HOSTCC=cc

To view, visit change 43144. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If50341df169a476899b5a5ffd4c4fb6d21c3f4ac
Gerrit-Change-Number: 43144
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-MessageType: newchange