crossgcc: Prefer gnatgcc over gcc if available
For distros that package and version gnat independently from gcc (such as Ubuntu), try to build with gnatgcc first. This fixes the issue of gcc -print-prog-name=gnat1 failing because gcc is of a different version. Change-Id: Icec6d1fba8855e88ac91d47842dcb7f6b9d35461 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/20517 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
5d09d48050
commit
8f2cdad882
|
@ -982,7 +982,9 @@ if [ -n "$CC" ]; then
|
|||
HALT_FOR_TOOLS=1
|
||||
fi
|
||||
else
|
||||
if searchtool gcc "Free Software Foundation" nofail > /dev/null; then
|
||||
if searchtool gnatgcc "Free Software Foundation" nofail > /dev/null; then
|
||||
CC=gnatgcc
|
||||
elif searchtool gcc "Free Software Foundation" nofail > /dev/null; then
|
||||
CC=gcc
|
||||
else
|
||||
searchtool cc '^' nofail > /dev/null || please_install gcc
|
||||
|
|
Loading…
Reference in New Issue