Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-09-13 02:37:45 +0400
committerJunio C Hamano <gitster@pobox.com>2010-09-27 22:45:20 +0400
commitb3457afc4f6da6cfef265359ed182c5fcd6d266c (patch)
tree996e3f6f2792b7ac6b55cebcea2708f6b7550478 /Makefile
parent9027fa9eb7df606b6658dd48a40bb993ce222ddd (diff)
Makefile: add CC to TRACK_CFLAGS
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b7a62cfdf2..3bed8956ea 100644
--- a/Makefile
+++ b/Makefile
@@ -1974,7 +1974,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