mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
arch: um: Add Clang coverage support
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>
This commit is contained in:
parent
abe4eaa861
commit
32a84cfc6c
@ -4,7 +4,12 @@
|
||||
#
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user