From 43e873b2576c2013a792f1fa213228470a6c619e Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Sat, 30 Mar 2013 10:15:47 -0400 Subject: silence compilerplugin build Change-Id: I4397575e4665e8a257d0bd3e15245d996a48a1f4 --- compilerplugins/Makefile-clang.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'compilerplugins') 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: -- cgit