mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
toolchain/toolchain-external: add a check for D language support
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
22e82f22d1
commit
f9f8f7e64a
@@ -340,6 +340,24 @@ check_cplusplus = \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
#
|
||||
#
|
||||
# Check that the external toolchain supports D language
|
||||
#
|
||||
# $1: cross-gdc path
|
||||
#
|
||||
check_dlang = \
|
||||
__CROSS_GDC=$(strip $1) ; \
|
||||
__o=$(BUILD_DIR)/.br-toolchain-test-dlang.tmp ; \
|
||||
printf 'import std.stdio;\nvoid main() { writeln("Hello World!"); }\n' | \
|
||||
$${__CROSS_GDC} -x d -o $${__o} - ; \
|
||||
if test $$? -ne 0 ; then \
|
||||
rm -f $${__o}* ; \
|
||||
echo "D language support is selected but is not available in external toolchain" ; \
|
||||
exit 1 ; \
|
||||
fi ; \
|
||||
rm -f $${__o}* \
|
||||
|
||||
#
|
||||
#
|
||||
# Check that the external toolchain supports Fortran
|
||||
|
||||
Reference in New Issue
Block a user