Browse Source

toolchain/toolchain-external: add support for D language

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Eric Le Bihan 5 years ago
parent
commit
aa12b06b60

+ 4 - 0
toolchain/toolchain-external/pkg-toolchain-external.mk

@@ -152,6 +152,10 @@ ifeq ($(BR2_TOOLCHAIN_HAS_OPENMP),y)
 TOOLCHAIN_EXTERNAL_LIBS += libgomp.so.*
 TOOLCHAIN_EXTERNAL_LIBS += libgomp.so.*
 endif
 endif
 
 
+ifeq ($(BR2_TOOLCHAIN_HAS_DLANG),y)
+TOOLCHAIN_EXTERNAL_LIBS += libgdruntime.so* libgphobos.so*
+endif
+
 TOOLCHAIN_EXTERNAL_LIBS += $(call qstrip,$(BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS))
 TOOLCHAIN_EXTERNAL_LIBS += $(call qstrip,$(BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS))
 
 
 
 

+ 7 - 0
toolchain/toolchain-external/toolchain-external-custom/Config.in.options

@@ -415,6 +415,13 @@ config BR2_TOOLCHAIN_EXTERNAL_CXX
 	  support. If you don't know, leave the default value,
 	  support. If you don't know, leave the default value,
 	  Buildroot will tell you if it's correct or not.
 	  Buildroot will tell you if it's correct or not.
 
 
+config BR2_TOOLCHAIN_EXTERNAL_DLANG
+	bool "Toolchain has D support?"
+	select BR2_TOOLCHAIN_HAS_DLANG
+	help
+	  Select this option if your external toolchain has D
+	  support.
+
 config BR2_TOOLCHAIN_EXTERNAL_FORTRAN
 config BR2_TOOLCHAIN_EXTERNAL_FORTRAN
 	bool "Toolchain has Fortran support?"
 	bool "Toolchain has Fortran support?"
 	select BR2_TOOLCHAIN_HAS_FORTRAN
 	select BR2_TOOLCHAIN_HAS_FORTRAN