xref: /linux/scripts/Makefile.kcov (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1*ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
25aadfdebSMasahiro Yamadakcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC)	+= -fsanitize-coverage=trace-pc
35aadfdebSMasahiro Yamadakcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS)	+= -fsanitize-coverage=trace-cmp
45aadfdebSMasahiro Yamadakcov-flags-$(CONFIG_GCC_PLUGIN_SANCOV)		+= -fplugin=$(objtree)/scripts/gcc-plugins/sancov_plugin.so
55aadfdebSMasahiro Yamada
65aadfdebSMasahiro Yamadaexport CFLAGS_KCOV := $(kcov-flags-y)
7