Run COMPILER_PLUGIN_TOOL on Objective C code, too
Change-Id: I3eb9fb57e80b4600c11eef1c52986400478b4167
This commit is contained in:
parent
72ef2d526b
commit
b40d3ba4d3
@ -82,6 +82,22 @@ $(call gb_Helper_abbreviate_dirs,\
|
|||||||
$(INCLUDE) \
|
$(INCLUDE) \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
define gb_ObjCObject__tool_command
|
||||||
|
$(call gb_Output_announce,$(1).m,$(true),OCC,3)
|
||||||
|
$(call gb_Helper_abbreviate_dirs,\
|
||||||
|
ICECC=no CCACHE_DISABLE=1 \
|
||||||
|
$(gb_CC) \
|
||||||
|
$(DEFS) \
|
||||||
|
$(gb_LTOFLAGS) \
|
||||||
|
$(if $(VISIBILITY),,$(gb_VISIBILITY_FLAGS)) \
|
||||||
|
$(if $(WARNINGS_NOT_ERRORS),,$(gb_CFLAGS_WERROR)) \
|
||||||
|
$(gb_COMPILER_PLUGINS) \
|
||||||
|
$(T_OBJCFLAGS) $(T_OBJCFLAGS_APPEND) \
|
||||||
|
-c $(2) \
|
||||||
|
-I$(dir $(2)) \
|
||||||
|
$(INCLUDE) \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
# Used to run a compiler plugin tool.
|
# Used to run a compiler plugin tool.
|
||||||
# $(call gb_CxxObject__tool_command,relative-source,source)
|
# $(call gb_CxxObject__tool_command,relative-source,source)
|
||||||
@ -101,6 +117,22 @@ $(call gb_Helper_abbreviate_dirs,\
|
|||||||
$(INCLUDE) \
|
$(INCLUDE) \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
define gb_ObjCxxObject__tool_command
|
||||||
|
$(call gb_Output_announce,$(1).mm,$(true),OCX,3)
|
||||||
|
$(call gb_Helper_abbreviate_dirs,\
|
||||||
|
ICECC=no CCACHE_DISABLE=1 \
|
||||||
|
$(gb_CXX) \
|
||||||
|
$(DEFS) \
|
||||||
|
$(gb_LTOFLAGS) \
|
||||||
|
$(if $(VISIBILITY),,$(gb_VISIBILITY_FLAGS)) \
|
||||||
|
$(if $(WARNINGS_NOT_ERRORS),,$(gb_CFLAGS_WERROR)) \
|
||||||
|
$(gb_COMPILER_PLUGINS) \
|
||||||
|
$(T_OBJCXXFLAGS) $(T_OBJCXXFLAGS_APPEND) \
|
||||||
|
-c $(2) \
|
||||||
|
-I$(dir $(2)) \
|
||||||
|
$(INCLUDE) \
|
||||||
|
)
|
||||||
|
endef
|
||||||
|
|
||||||
define gb_SrsPartTarget__command_dep
|
define gb_SrsPartTarget__command_dep
|
||||||
$(call gb_Helper_abbreviate_dirs,\
|
$(call gb_Helper_abbreviate_dirs,\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user