Skip to content

Commit c4a9d1e

Browse files
Steven Wangcmb69
authored andcommitted
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. Closes GH-8284.
1 parent dcd5e82 commit c4a9d1e

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)