mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 08:58:07 +00:00
32a84cfc6c
Clang uses a different set of command line arguments for enabling coverage. Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Tested-by: David Gow <davidgow@google.com> Signed-off-by: Richard Weinberger <richard@nod.at>
17 lines
383 B
Text
17 lines
383 B
Text
#
|
|
# Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
|
|
# Licensed under the GPL
|
|
#
|
|
|
|
GPROF_OPT += -pg
|
|
|
|
ifdef CONFIG_CC_IS_CLANG
|
|
GCOV_OPT += -fprofile-instr-generate -fcoverage-mapping
|
|
else
|
|
GCOV_OPT += -fprofile-arcs -ftest-coverage
|
|
endif
|
|
|
|
CFLAGS-$(CONFIG_GCOV) += $(GCOV_OPT)
|
|
CFLAGS-$(CONFIG_GPROF) += $(GPROF_OPT)
|
|
LINK-$(CONFIG_GCOV) += $(GCOV_OPT)
|
|
LINK-$(CONFIG_GPROF) += $(GPROF_OPT)
|