git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Silence $(CC) command line when compiling test tools

From
Junio C Hamano <junkio@cox.net>
Date
May 30, 2007, 05:48 UTC
Message-ID
<7vps4i50bo.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070530031123.GA12044@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 45 quoted lines
> Like our other $(CC) rules in the Makefile we typically build with
> $(QUIET_CC) in front of $(CC) so that we hide the compiler options.
>
> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
> ---
>  Makefile |   14 +++++++-------
>  1 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 3680b09..25c3f37 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -956,25 +956,25 @@ test: all
>  	$(MAKE) -C t/ all
>  
>  test-date$X: test-date.c date.o ctype.o
> -	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) test-date.c date.o ctype.o
> +	$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) test-date.c date.o ctype.o
>  
>  test-delta$X: test-delta.o diff-delta.o patch-delta.o $(GITLIBS)
> -	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
> +	$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
>  
>  test-dump-cache-tree$X: dump-cache-tree.o $(GITLIBS)
> -	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
> +	$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
>  
>  test-sha1$X: test-sha1.o $(GITLIBS)
> -	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
> +	$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
>  
>  test-match-trees$X: test-match-trees.o $(GITLIBS)
> -	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
> +	$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
>  
>  test-chmtime$X: test-chmtime.c
> -	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<
> +	$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<
>  
>  test-genrandom$X: test-genrandom.c
> -	$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<
> +	$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<
>  
>  check-sha1:: test-sha1$X
>  	./test-sha1.sh

Hmmm. One wonders if we can do something about these apparent similarities with all these rules...

Previous: Shawn O. Pearce
Message 2 of 2 in “Silence $(CC) command line when compiling test tools”
  1. Silence $(CC) command line when compiling test toolsShawn O. Pearce, May 30, 2007
  2. Junio C HamanoMay 30, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.