浏览代码

pdinoto writes:

This patch adds an option in GCC config to compile Objective-C language support
in the toolchain. It is disabled by default, so it is not intrusive.
Eric Andersen 20 年之前
父节点
当前提交
a777f26c32
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 7 0
      toolchain/gcc/Config.in
  2. 4 0
      toolchain/gcc/gcc-uclibc-3.x.mk

+ 7 - 0
toolchain/gcc/Config.in

@@ -74,3 +74,10 @@ config BR2_INSTALL_LIBGCJ
 	depends on BR2_INSTALL_LIBSTDCPP
 	help
 	    Build/install java compiler and libgcj?
+
+config BR2_INSTALL_OBJC
+	bool "Build/install Objective-C compiler and runtime?"
+	default n
+	help
+	    Build/install Objective-C compiler and runtime?
+

+ 4 - 0
toolchain/gcc/gcc-uclibc-3.x.mk

@@ -49,6 +49,10 @@ TARGET_LANGUAGES:=c
 endif
 endif
 
+ifeq ($(BR2_INSTALL_OBJC),y)
+TARGET_LANGUAGES:=$(TARGET_LANGUAGES),objc
+endif
+
 #############################################################
 #
 # build the first pass gcc compiler