summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2013-03-30 10:15:47 -0400
committerPeter Foley <pefoley2@verizon.net>2013-03-30 13:01:08 -0400
commit43e873b2576c2013a792f1fa213228470a6c619e (patch)
treed16644194c22334c3bfbdc03d09c30b551601542 /compilerplugins
parent6d92441407f98eb8a662ccc4451ae7dd4980631e (diff)
silence compilerplugin build
Change-Id: I4397575e4665e8a257d0bd3e15245d996a48a1f4
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/Makefile-clang.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk
index ff92ba4fff0d..2c71d8c620f1 100644
--- a/compilerplugins/Makefile-clang.mk
+++ b/compilerplugins/Makefile-clang.mk
@@ -13,6 +13,8 @@
# Compile flags ('make CLANGCXXFLAGS=-g' if you need to debug the plugin)
CLANGCXXFLAGS=-O2 -Wall -Wextra -g
+QUIET=$(if $(VERBOSE)$(verbose),,@)
+
# The uninteresting rest.
# Clang headers require these.
@@ -67,7 +69,7 @@ CLANGOBJS=
define clangbuildsrc
$(3): $(2) $(SRCDIR)/compilerplugins/Makefile-clang.mk $(CLANGOUTDIR)/clang-timestamp
@echo [build CXX] $(subst $(SRCDIR)/,,$(2))
- $(CXX) $(CLANGCXXFLAGS) $(CLANGDEFS) $(CLANGINCLUDES) -I$(BUILDDIR)/config_host $(2) -fPIC -std=c++11 -c -o $(3) -MMD -MT $(3) -MP -MF $(CLANGOUTDIR)/$(1).d
+ $(QUIET)$(CXX) $(CLANGCXXFLAGS) $(CLANGDEFS) $(CLANGINCLUDES) -I$(BUILDDIR)/config_host $(2) -fPIC -std=c++11 -c -o $(3) -MMD -MT $(3) -MP -MF $(CLANGOUTDIR)/$(1).d
-include $(CLANGOUTDIR)/$(1).d
@@ -79,10 +81,10 @@ $(foreach src, $(CLANGSRC), $(eval $(call clangbuildsrc,$(src),$(CLANGINDIR)/$(s
$(CLANGOUTDIR)/plugin.so: $(CLANGOBJS)
@echo [build LNK] $(subst $(BUILDDIR)/,,$@)
- $(CXX) -shared $(CLANGOBJS) -o $@
+ $(QUIET)$(CXX) -shared $(CLANGOBJS) -o $@
# Clang most probably doesn't maintain binary compatibility, so rebuild when clang changes.
$(CLANGOUTDIR)/clang-timestamp: $(CLANGDIR)/bin/clang
- touch $@
+ $(QUIET)touch $@
# vim: set noet sw=4 ts=4: