Skip to content

Commit

Permalink
BUILD: Remove .dwo files on clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Torbjörn Andersson authored and David Turner committed Aug 20, 2018
1 parent 93ed8a2 commit 4d5c423
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.*.swp
.*.swo
*.o
*.dwo
lib*.a
.deps

Expand Down
1 change: 1 addition & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ clean:
$(RM_REC) $(DEPDIRS)
$(RM) $(OBJS) $(EXECUTABLE)
ifdef SPLIT_DWARF
$(RM) $(OBJS:.o=.dwo)
$(RM) $(EXECUTABLE).dwp
endif

Expand Down
3 changes: 3 additions & 0 deletions rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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.