https://github.com/torvalds/linux
Raw File
Tip revision: 98d54f81e36ba3bf92172791eba5ca5bd813989b authored by Linus Torvalds on 01 March 2020, 22:38:46 UTC
Linux 5.6-rc4
Tip revision: 98d54f8
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