[coreboot-gerrit] New patch to review for coreboot: buildgcc: Build gnat by default if host compiler seems compatible
Nico Huber (nico.h@gmx.de)
gerrit at coreboot.org
Tue Sep 20 13:41:20 CEST 2016
Nico Huber (nico.h at gmx.de) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16678
-gerrit
commit 6a58d3dc46a3dea8b707e59338cdfe7dde85c6b7
Author: Nico Huber <nico.huber at secunet.com>
Date: Tue Sep 20 13:09:29 2016 +0200
buildgcc: Build gnat by default if host compiler seems compatible
Change-Id: I2a13e188ddb0b7d64d3c0ec979a1a493bf160afc
Signed-off-by: Nico Huber <nico.huber at secunet.com>
---
util/crossgcc/buildgcc | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index bdf9208..e9bf2b8 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -26,7 +26,8 @@ CROSSGCC_COMMIT=$( git describe )
PACKAGE=GCC
TARGETDIR=$(pwd)/xgcc
TARGETARCH=i386-elf
-LANGUAGES=c
+DEFAULT_LANGUAGES=c
+LANGUAGES=
DESTDIR=
SAVETEMPS=0
SKIPPYTHON=1
@@ -455,7 +456,7 @@ myhelp()
printf " [-p|--platform <platform>] target platform to build cross compiler for\n"
printf " (defaults to $TARGETARCH)\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 " [-p|--platform <platform>] target platform to build cross compiler for\n"
printf " (defaults to $TARGETARCH)\n"
@@ -911,6 +912,16 @@ elif [ $UNAME = "NetBSD" ]; then
OPTIONS="ABI=32"
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
export HOSTCFLAGS="-Os"
More information about the coreboot-gerrit
mailing list