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>
Ævar Arnfjörð Bjarmason committed
Sep 12, 2010 at 22:37 UTC
b3457afc4f6da6cfef265359ed182c5fcd6d266c
1 file changed
+1
-1
Makefile
+1
-1
@@ -1974,7 +1974,7 @@ cscope:
1974
$(FIND) . -name '*.[hcS]' -print | xargs cscope -b
1975
1976
### Detect prefix changes
1977
-TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):\
1977
+TRACK_CFLAGS = $(CC):$(subst ','\'',$(ALL_CFLAGS)):\
1978
$(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)
1979
1980
GIT-CFLAGS: FORCE