Skip to content

Commit b3457af

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9027fa9 commit b3457af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ cscope:
19741974
$(FIND) . -name '*.[hcS]' -print | xargs cscope -b
19751975

19761976
### Detect prefix changes
1977-
TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):\
1977+
TRACK_CFLAGS = $(CC):$(subst ','\'',$(ALL_CFLAGS)):\
19781978
$(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)
19791979

19801980
GIT-CFLAGS: FORCE

0 commit comments

Comments
 (0)