Skip to content

Commit 5ca2ed6

Browse files
jeffhostetlerdscho
authored andcommitted
Makefile: clean PDBs when MSVC=1
Teach main Makefile to also delete the PDB files for the various EXE files during "make MSVC=1 clean". Previously, we only deleted the PDB files associated with individual .o files. Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 9293b6e commit 5ca2ed6

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
@@ -2576,6 +2576,12 @@ endif
25762576
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
25772577
$(RM) GIT-USER-AGENT GIT-PREFIX
25782578
$(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PYTHON-VARS
2579+
ifdef MSVC
2580+
$(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS))
2581+
$(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS))
2582+
$(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS))
2583+
$(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS))
2584+
endif
25792585

25802586
.PHONY: all install profile-clean clean strip
25812587
.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell

0 commit comments

Comments
 (0)