Skip to content

Commit 582847f

Browse files
bulwahnarndb
authored andcommitted
Makefile.kcov: apply needed compiler option unconditionally in CFLAGS_KCOV
Commit 852faf8 ("gcc-plugins: remove SANCOV gcc plugin") removes the config CC_HAS_SANCOV_TRACE_PC, as all supported compilers include the compiler option '-fsanitize-coverage=trace-pc' by now. The commit however misses the important use of this config option in Makefile.kcov to add '-fsanitize-coverage=trace-pc' to CFLAGS_KCOV. Include the compiler option '-fsanitize-coverage=trace-pc' unconditionally to CFLAGS_KCOV, as all compilers provide that option now. Fixes: 852faf8 ("gcc-plugins: remove SANCOV gcc plugin") Signed-off-by: Lukas Bulwahn <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Reviewed-by: Dmitry Vyukov <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 28d51df commit 582847f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.kcov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc
2+
kcov-flags-y += -fsanitize-coverage=trace-pc
33
kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -fsanitize-coverage=trace-cmp
44

55
export CFLAGS_KCOV := $(kcov-flags-y)

0 commit comments

Comments
 (0)