Skip to content

Commit d61f8c4

Browse files
committed
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 <[email protected]>
1 parent 1dfd256 commit d61f8c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ ifeq ("$(origin D)", "command line")
314314
endif
315315

316316
ifneq (,$(findstring gcov,$(D)))
317-
DEBUG_CFLAGS_INTERNAL += -fprofile-arcs -ftest-coverage --coverage
318-
DEBUG_LDFLAGS_INTERNAL += -fprofile-generate --coverage
317+
DEBUG_CFLAGS_INTERNAL += -fprofile-arcs -fprofile-update=atomic -ftest-coverage --coverage
318+
DEBUG_LDFLAGS_INTERNAL += -fprofile-generate -fprofile-update=atomic --coverage
319319
endif
320320

321321
ifneq (,$(findstring verbose,$(D)))

0 commit comments

Comments
 (0)