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
84903a9bb0
commit
814ab8b340
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