Skip to content

Commit dbd9852

Browse files
jeffhostetlerdscho
authored andcommitted
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 f69c1b5 commit dbd9852

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
@@ -2793,6 +2793,12 @@ endif
27932793
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
27942794
$(RM) GIT-USER-AGENT GIT-PREFIX
27952795
$(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PYTHON-VARS
2796+
ifdef MSVC
2797+
$(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS))
2798+
$(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS))
2799+
$(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS))
2800+
$(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS))
2801+
endif
27962802

27972803
.PHONY: all install profile-clean clean strip
27982804
.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell

0 commit comments

Comments
 (0)