diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-29 20:02:32 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-04-29 20:04:23 +0200 |
commit | 2d69d539bf1ee1ee413dd26d772d4b318b51d63f (patch) | |
tree | e6a20a93ebb59fb2e0af011ca19242857333a450 /solenv | |
parent | d6635af3186314de0c20a904b36e50bba4ae63cd (diff) |
solenv: add COMPILER_EXTERNAL_TOOL
COMPILER_PLUGIN_TOOL has two effects:
1) It makes LinkTarget aware that no object code will be generated by
the compiler (as the compiler is just a tool, not a real compiler), so
e.g. it's expected that no dependency output will be generated.
2) It puts some of the clang plugins into rewriter mode.
When using some external compiler tool (like a wrapper around
clang-rename), then 1) is wanted, but not 2), i.e. getting rid of the
dependency generation part is wanted, but none of the rewriter plugins
should be activated. So add COMPILER_EXTERNAL_TOOL that does 1) without
2).
Change-Id: I83c21da5763a62d654f93c574d89573cdc7c2138
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/LinkTarget.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index b8c11f364801..49bd40b39d04 100644 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -130,7 +130,7 @@ endif gb_CObject_get_source = $(1)/$(2).c -ifneq ($(COMPILER_PLUGIN_TOOL),) +ifneq ($(COMPILER_EXTERNAL_TOOL)$(COMPILER_PLUGIN_TOOL),) $(call gb_CObject_get_target,%) : $(call gb_CObject_get_source,$(SRCDIR),%) $(gb_FORCE_COMPILE_ALL_TARGET) $(call gb_CObject__tool_command,$*,$<) else @@ -181,7 +181,7 @@ endif endif endef -ifneq ($(COMPILER_PLUGIN_TOOL),) +ifneq ($(COMPILER_EXTERNAL_TOOL)$(COMPILER_PLUGIN_TOOL),) $(call gb_CxxObject_get_target,%) : $(call gb_CxxObject_get_source,$(SRCDIR),%) $(gb_FORCE_COMPILE_ALL_TARGET) $(call gb_CxxObject__tool_command,$*,$<) else @@ -315,7 +315,7 @@ endef gb_ObjCxxObject_get_source = $(1)/$(2).mm -ifneq ($(COMPILER_PLUGIN_TOOL),) +ifneq ($(COMPILER_EXTERNAL_TOOL)$(COMPILER_PLUGIN_TOOL),) $(call gb_ObjCxxObject_get_target,%) : $(call gb_ObjCxxObject_get_source,$(SRCDIR),%) $(gb_FORCE_COMPILE_ALL_TARGET) $(call gb_ObjCxxObject__tool_command,$*,$<) else @@ -342,7 +342,7 @@ endif gb_ObjCObject_get_source = $(1)/$(2).m -ifneq ($(COMPILER_PLUGIN_TOOL),) +ifneq ($(COMPILER_EXTERNAL_TOOL)$(COMPILER_PLUGIN_TOOL),) $(call gb_ObjCObject_get_target,%) : $(call gb_ObjCObject_get_source,$(SRCDIR),%) $(gb_FORCE_COMPILE_ALL_TARGET) $(call gb_ObjCObject__tool_command,$*,$<) else |