Skip to content

Commit 0ed1326

Browse files
jeffhostetlerGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
vs2015: teach 'make clean' to delete PDBs
Teach main Makefile to also delete the generated PDB files as well as the PDB files for the various EXE files during "make MSVC=1 clean". Signed-off-by: Jeff Hostetler <[email protected]> Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 9c9dc2c commit 0ed1326

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2971,6 +2971,12 @@ endif
29712971
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
29722972
$(RM) GIT-USER-AGENT GIT-PREFIX
29732973
$(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PERL-HEADER GIT-PYTHON-VARS
2974+
ifdef MSVC
2975+
$(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS))
2976+
$(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS))
2977+
$(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS))
2978+
$(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS))
2979+
endif
29742980

29752981
.PHONY: all install profile-clean cocciclean clean strip
29762982
.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell

0 commit comments

Comments
 (0)