Enable D language support

Enable D support as an experimental feature.
GDC becomes a build dependency when enabled.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
This commit is contained in:
Marc Poulhiès 2022-06-11 15:03:41 +02:00 committed by Chris Packham
parent a3e3d734a7
commit 618affc789
3 changed files with 16 additions and 0 deletions

View File

@ -17,6 +17,9 @@ config CC_SUPPORT_JAVA
config CC_SUPPORT_ADA
bool
config CC_SUPPORT_D
bool
config CC_SUPPORT_OBJC
bool
@ -73,6 +76,17 @@ config CC_LANG_ADA
Only select this if you know that your specific version of the
compiler supports this language.
config CC_LANG_D
bool
prompt "D (EXPERIMENTAL)"
depends on CC_SUPPORT_D
depends on EXPERIMENTAL
help
Enable building a D compiler.
Only select this if you know that your specific version of the
compiler supports this language.
config CC_LANG_OBJC
bool
prompt "Objective-C (EXPERIMENTAL)"

View File

@ -4,6 +4,7 @@
## select CC_SUPPORT_FORTRAN
## select CC_SUPPORT_JAVA if !GCC_7_or_later && OBSOLETE
## select CC_SUPPORT_ADA
## select CC_SUPPORT_D
## select CC_SUPPORT_OBJC
## select CC_SUPPORT_OBJCXX
## select CC_SUPPORT_GOLANG

View File

@ -43,6 +43,7 @@ cc_gcc_lang_list() {
[ "${CT_CC_LANG_CXX}" = "y" ] && lang_list+=",c++"
[ "${CT_CC_LANG_FORTRAN}" = "y" ] && lang_list+=",fortran"
[ "${CT_CC_LANG_ADA}" = "y" ] && lang_list+=",ada"
[ "${CT_CC_LANG_D}" = "y" ] && lang_list+=",d"
[ "${CT_CC_LANG_JAVA}" = "y" ] && lang_list+=",java"
[ "${CT_CC_LANG_OBJC}" = "y" ] && lang_list+=",objc"
[ "${CT_CC_LANG_OBJCXX}" = "y" ] && lang_list+=",obj-c++"