Permalink
Browse files

BUILD: Remove .dwo files on clean

  • Loading branch information...
eriktorbjorn authored and digitall committed Aug 20, 2018
1 parent 93ed8a2 commit 4d5c4232ee20c962ea95d082095f519c3c5dfc12
Showing with 5 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 Makefile.common
  3. +3 −0 rules.mk
@@ -3,6 +3,7 @@
.*.swp
.*.swo
*.o
*.dwo
lib*.a
.deps

@@ -96,6 +96,7 @@ clean:
$(RM_REC) $(DEPDIRS)
$(RM) $(OBJS) $(EXECUTABLE)
ifdef SPLIT_DWARF
$(RM) $(OBJS:.o=.dwo)
$(RM) $(EXECUTABLE).dwp
endif

@@ -98,5 +98,8 @@ endif # TOOL_EXECUTABLE
clean: clean-$(MODULE)
clean-$(MODULE): clean-% :
-$(RM) $(MODULE_OBJS-$*) $(MODULE_LIB-$*) $(PLUGIN-$*) $(TOOL-$*)
ifdef SPLIT_DWARF
-$(RM) $(MODULE_OBJS-$*:.o=.dwo)
endif

.PHONY: clean-$(MODULE) $(MODULE)

0 comments on commit 4d5c423

Please sign in to comment.