btrfs-progs: build: use thread-safe profile generation flags
The CI lcov generation fails due to: Processing ./common/device-utils.gcda geninfo: ERROR: Unexpected negative count '-6' for /home/runner/work/btrfs-progs/btrfs-progs/common/device-utils.h:69. Perhaps you need to compile with '-fprofile-update=atomic (use "geninfo --ignore-errors negative ..." to bypass this error) Use a safer way to gather the profile stats. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1dfd256a55
commit
d61f8c4c95
4
Makefile
4
Makefile
|
@ -314,8 +314,8 @@ ifeq ("$(origin D)", "command line")
|
|||
endif
|
||||
|
||||
ifneq (,$(findstring gcov,$(D)))
|
||||
DEBUG_CFLAGS_INTERNAL += -fprofile-arcs -ftest-coverage --coverage
|
||||
DEBUG_LDFLAGS_INTERNAL += -fprofile-generate --coverage
|
||||
DEBUG_CFLAGS_INTERNAL += -fprofile-arcs -fprofile-update=atomic -ftest-coverage --coverage
|
||||
DEBUG_LDFLAGS_INTERNAL += -fprofile-generate -fprofile-update=atomic --coverage
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring verbose,$(D)))
|
||||
|
|
Loading…
Reference in New Issue