summaryrefslogtreecommitdiff
path: root/solenv/Module_solenv.mk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-18 11:51:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-18 11:51:38 +0200
commit2228203a8211dea1c8addb98298096a094ec788b (patch)
tree41468a262738aba186a29b39cf690263424f86b8 /solenv/Module_solenv.mk
parent2fec2ab3adc7686df3548afd86939d28d032dfcf (diff)
Don't run CompilerTest_compilerplugins_clang with COMPILER_PLUGIN_TOOL=...
When COMPILER_PLUGIN_TOOL is set, solenv/gbuild/LinkTarget.mk uses the (plaform- generic) gb_*__tool_command which don't know about the COMPILER_TEST flag (as gb_CObject__command_pattern in solenv/gbuild/platform/com_GCC_class.mk does), so a top-level Clang make COMPILER_PLUGIN_TOOL=... will generate spurious warnings from CompilerTest_compilerplugins_clang's compilations done without the -Xclang -verify switch. This solution is a bit hacky (e.g., it would be better to handle this more centrally in solenv/gbuild/CompilerTest.mk), but effective. Change-Id: I58e9a76207065d9f6050a1ace6fc85c5a26882f8
Diffstat (limited to 'solenv/Module_solenv.mk')
-rw-r--r--solenv/Module_solenv.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/solenv/Module_solenv.mk b/solenv/Module_solenv.mk
index 528ac897a13a..70eb5f9fb7c3 100644
--- a/solenv/Module_solenv.mk
+++ b/solenv/Module_solenv.mk
@@ -36,9 +36,11 @@ endif
endif
ifneq ($(COMPILER_PLUGINS),)
+ifeq ($(COMPILER_EXTERNAL_TOOL)$(COMPILER_PLUGIN_TOOL),)
$(eval $(call gb_Module_add_check_targets,solenv, \
CompilerTest_compilerplugins_clang \
))
endif
+endif
# vim: set shiftwidth=4 tabstop=4 noexpandtab: