Skip to content

Commit

Permalink
Makefile: clean PDBs when MSVC=1
Browse files Browse the repository at this point in the history
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 <jeffhost@microsoft.com>
  • Loading branch information
jeffhostetler committed Apr 26, 2017
1 parent d32cf6f commit 6b24a52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -2583,6 +2583,9 @@ endif
$(RM) GIT-SCRIPT-DEFINES GIT-PERL-DEFINES GIT-PYTHON-VARS
ifdef MSVC
$(RM) $(patsubst %.o,%.o.pdb,$(OBJECTS))
$(RM) $(patsubst %.exe,%.pdb,$(OTHER_PROGRAMS))
$(RM) $(patsubst %.exe,%.pdb,$(PROGRAMS))
$(RM) $(patsubst %.exe,%.pdb,$(TEST_PROGRAMS))
endif

.PHONY: all install profile-clean clean strip
Expand Down

0 comments on commit 6b24a52

Please sign in to comment.