Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: 48778464bb7d346b47157d21ffde2af6b2d39110 authored by Linus Torvalds on 21 June 2020, 22:45:29 UTC
Linux 5.8-rc2
Tip revision: 4877846
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