Skip to content

Commit 5b64d4e

Browse files
jeffhostetlerGit for Windows Build Agent
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 fad471f commit 5b64d4e

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
@@ -2547,6 +2547,12 @@ endif
25472547
$(RM) GIT-VERSION-FILE GIT-CFLAGS GIT-LDFLAGS GIT-BUILD-OPTIONS
25482548
$(RM) GIT-USER-AGENT GIT-PREFIX
25492549
$(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PYTHON-VARS
2550+
ifdef MSVC
2551+
$(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS))
2552+
$(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS))
2553+
$(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS))
2554+
$(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS))
2555+
endif
25502556

25512557
.PHONY: all install profile-clean clean strip
25522558
.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell

0 commit comments

Comments
 (0)