Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: c79f46a282390e0f5b306007bf7b11a46d529538 authored by Linus Torvalds on 05 January 2020, 22:23:27 UTC
Linux 5.5-rc5
Tip revision: c79f46a
Makefile.kcov
# SPDX-License-Identifier: GPL-2.0-only
ifdef CONFIG_KCOV

kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC)	+= -fsanitize-coverage=trace-pc
kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS)	+= -fsanitize-coverage=trace-cmp
kcov-flags-$(CONFIG_GCC_PLUGIN_SANCOV)		+= -fplugin=$(objtree)/scripts/gcc-plugins/sancov_plugin.so

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

endif
back to top