util/xcompile: Look for the host compiler in XGCCPATH, too (and first)
commit793bf7e605e7451db47af0b47d7135767549a09c
authorPatrick Georgi <pgeorgi@google.com>
Mon, 6 Jul 2020 14:37:33 +0000 (6 16:37 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 8 Jul 2020 08:53:41 +0000 (8 08:53 +0000)
treed00283957fee63841b7aa076cf06a9bf5f8a09a4
parentfca0cba6a15176002bbeadd4e41a7634928481de
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.

In addition, look for the C++ host compiler as well.

Change-Id: If50341df169a476899b5a5ffd4c4fb6d21c3f4ac
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43144
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
util/xcompile/xcompile