mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
buildgcc: Build gnat by default if host compiler seems compatible
Change-Id: I2a13e188ddb0b7d64d3c0ec979a1a493bf160afc Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/16678 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
04a1f6a3bc
commit
66c2c1a2d4
1 changed files with 13 additions and 2 deletions
|
@ -26,7 +26,8 @@ CROSSGCC_COMMIT=$( git describe )
|
||||||
PACKAGE=GCC
|
PACKAGE=GCC
|
||||||
TARGETDIR=$(pwd)/xgcc
|
TARGETDIR=$(pwd)/xgcc
|
||||||
TARGETARCH=i386-elf
|
TARGETARCH=i386-elf
|
||||||
LANGUAGES=c
|
DEFAULT_LANGUAGES=c
|
||||||
|
LANGUAGES=
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
SAVETEMPS=0
|
SAVETEMPS=0
|
||||||
SKIPPYTHON=1
|
SKIPPYTHON=1
|
||||||
|
@ -455,7 +456,7 @@ myhelp()
|
||||||
printf " [-p|--platform <platform>] target platform to build cross compiler for\n"
|
printf " [-p|--platform <platform>] target platform to build cross compiler for\n"
|
||||||
printf " (defaults to $TARGETARCH)\n"
|
printf " (defaults to $TARGETARCH)\n"
|
||||||
printf " [-l|--languages <languages>] comma separated list of target languages\n"
|
printf " [-l|--languages <languages>] comma separated list of target languages\n"
|
||||||
printf " (defaults to $LANGUAGES)\n"
|
printf " (defaults to $DEFAULT_LANGUAGES)\n"
|
||||||
printf "GDB specific options:\n"
|
printf "GDB specific options:\n"
|
||||||
printf " [-p|--platform <platform>] target platform to build cross compiler for\n"
|
printf " [-p|--platform <platform>] target platform to build cross compiler for\n"
|
||||||
printf " (defaults to $TARGETARCH)\n"
|
printf " (defaults to $TARGETARCH)\n"
|
||||||
|
@ -918,6 +919,16 @@ elif [ $UNAME = "NetBSD" ]; then
|
||||||
OPTIONS="ABI=32"
|
OPTIONS="ABI=32"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ -z "${LANGUAGES}" ]; then
|
||||||
|
if hostcc_has_gnat1 && \
|
||||||
|
[ "$(hostcc_version)" = "$(buildcc_version)" -o "${BOOTSTRAP}" = "1" ];
|
||||||
|
then
|
||||||
|
printf "\nFound compatible Ada compiler, enabling Ada support by default.\n\n"
|
||||||
|
LANGUAGES="ada,${DEFAULT_LANGUAGES}"
|
||||||
|
else
|
||||||
|
LANGUAGES="${DEFAULT_LANGUAGES}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi # GCC
|
fi # GCC
|
||||||
|
|
||||||
export HOSTCFLAGS="-Os"
|
export HOSTCFLAGS="-Os"
|
||||||
|
|
Loading…
Add table
Reference in a new issue