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

[PATCH] Makefile: add CC to TRACK_CFLAGS

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 12, 2010, 22:37 UTC
Message-ID
<1284331065-3394-1-git-send-email-avarab@gmail.com>

Change the git make process so that everything's rebuilt if the CC is changed. Before we wouldn't rebuilt if e.g. the CC variable was changed from gcc to clang.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index c27e8bc..c46893a 100644
--- a/Makefile
+++ b/Makefile
@@ -1969,7 +1969,7 @@ cscope:
 	$(FIND) . -name '*.[hcS]' -print | xargs cscope -b
 
 ### Detect prefix changes
-TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):\
+TRACK_CFLAGS = $(CC):$(subst ','\'',$(ALL_CFLAGS)):\
              $(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)
 
 GIT-CFLAGS: FORCE
-- 
1.7.2.3.313.gcd15
Next: Ævar Arnfjörð Bjarmason
Message 1 of 4 in “Makefile: add CC to TRACK_CFLAGS”
  1. Makefile: add CC to TRACK_CFLAGSÆvar Arnfjörð Bjarmason, Sep 12, 2010
  2. Ævar Arnfjörð BjarmasonSep 19, 2010
  3. Junio C HamanoSep 20, 2010
  4. Ævar Arnfjörð BjarmasonSep 20, 2010

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.