Skip to content

Commit a1b5b5b

Browse files
author
Steven Wang
committed
Makefile: Clean up .gcda files in prof-gen.
The .gcda files generated by "$(MAKE) PROF_FLAGS=-fprofile-generate all" should be removed. Otherwise, the profile data in them would be combined with the profile data of user's workload.Then, they would be used by "make prof-use" later.
1 parent 48e0707 commit a1b5b5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/Makefile.global

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ distclean: clean
134134

135135
prof-gen:
136136
CCACHE_DISABLE=1 $(MAKE) PROF_FLAGS=-fprofile-generate all
137+
find . -name \*.gcda | xargs rm -f
137138

138139
prof-clean:
139140
find . -name \*.lo -o -name \*.o | xargs rm -f

0 commit comments

Comments
 (0)