{"thread":{"id":"8355","subject":"[PATCH] Silence $(CC) command line when compiling test tools","startedAt":"2007-05-30T03:11:23Z","lastAt":"2007-05-30T05:48:11Z","messageCount":2,"participants":["Shawn O. Pearce","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"43604","messageId":"20070530031123.GA12044@spearce.org","threadId":"8355","inReplyTo":null,"subject":"[PATCH] Silence $(CC) command line when compiling test tools","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-05-30T03:11:23Z","receivedAt":"2007-05-30T03:11:23Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Like our other $(CC) rules in the Makefile we typically build with\n$(QUIET_CC) in front of $(CC) so that we hide the compiler options.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n Makefile |   14 +++++++-------\n 1 files changed, 7 insertions(+), 7 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex 3680b09..25c3f37 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -956,25 +956,25 @@ test: all\n \t$(MAKE) -C t/ all\n \n test-date$X: test-date.c date.o ctype.o\n-\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) test-date.c date.o ctype.o\n+\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) test-date.c date.o ctype.o\n \n test-delta$X: test-delta.o diff-delta.o patch-delta.o $(GITLIBS)\n-\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n+\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n \n test-dump-cache-tree$X: dump-cache-tree.o $(GITLIBS)\n-\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n+\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n \n test-sha1$X: test-sha1.o $(GITLIBS)\n-\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n+\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n \n test-match-trees$X: test-match-trees.o $(GITLIBS)\n-\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n+\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n \n test-chmtime$X: test-chmtime.c\n-\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<\n+\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<\n \n test-genrandom$X: test-genrandom.c\n-\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<\n+\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<\n \n check-sha1:: test-sha1$X\n \t./test-sha1.sh\n-- \n1.5.2.869.g6b3ba\n"},{"id":"43614","messageId":"7vps4i50bo.fsf@assigned-by-dhcp.cox.net","threadId":"8355","inReplyTo":"20070530031123.GA12044@spearce.org","subject":"Re: [PATCH] Silence $(CC) command line when compiling test tools","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-05-30T05:48:11Z","receivedAt":"2007-05-30T05:48:11Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Shawn O. Pearce\" <spearce@spearce.org> writes:\n\n> Like our other $(CC) rules in the Makefile we typically build with\n> $(QUIET_CC) in front of $(CC) so that we hide the compiler options.\n>\n> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>\n> ---\n>  Makefile |   14 +++++++-------\n>  1 files changed, 7 insertions(+), 7 deletions(-)\n>\n> diff --git a/Makefile b/Makefile\n> index 3680b09..25c3f37 100644\n> --- a/Makefile\n> +++ b/Makefile\n> @@ -956,25 +956,25 @@ test: all\n>  \t$(MAKE) -C t/ all\n>  \n>  test-date$X: test-date.c date.o ctype.o\n> -\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) test-date.c date.o ctype.o\n> +\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) test-date.c date.o ctype.o\n>  \n>  test-delta$X: test-delta.o diff-delta.o patch-delta.o $(GITLIBS)\n> -\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n> +\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n>  \n>  test-dump-cache-tree$X: dump-cache-tree.o $(GITLIBS)\n> -\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n> +\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n>  \n>  test-sha1$X: test-sha1.o $(GITLIBS)\n> -\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n> +\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n>  \n>  test-match-trees$X: test-match-trees.o $(GITLIBS)\n> -\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n> +\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)\n>  \n>  test-chmtime$X: test-chmtime.c\n> -\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<\n> +\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<\n>  \n>  test-genrandom$X: test-genrandom.c\n> -\t$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<\n> +\t$(QUIET_CC)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $<\n>  \n>  check-sha1:: test-sha1$X\n>  \t./test-sha1.sh\n\nHmmm.  One wonders if we can do something about these apparent\nsimilarities with all these rules...\n"}]}