mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 20:58:44 +08:00
gcov: Prevent pile insertion recursion
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
ba50378f01
commit
3d99bae59a
2 changed files with 9 additions and 0 deletions
|
@ -25,5 +25,7 @@ endif()
|
|||
|
||||
if(CONFIG_COVERAGE_MINI AND CONFIG_ARCH_TOOLCHAIN_GCC)
|
||||
nuttx_add_system_library(libcoverage)
|
||||
target_compile_options(libcoverage PRIVATE -fno-profile-arcs
|
||||
-fno-test-coverage)
|
||||
target_sources(libcoverage PRIVATE gcov.c)
|
||||
endif()
|
||||
|
|
|
@ -24,6 +24,13 @@ endif
|
|||
|
||||
ifeq ($(CONFIG_COVERAGE_MINI)$(CONFIG_ARCH_TOOLCHAIN_GCC),yy)
|
||||
CSRCS += gcov.c
|
||||
|
||||
GCOV_CFLAGS += -fno-profile-arcs -fno-test-coverage
|
||||
GCOV_CFLAGS += -fno-stack-protector
|
||||
|
||||
bin/gcov.o: CFLAGS += $(GCOV_CFLAGS)
|
||||
kbin/gcov.o: CFLAGS += $(GCOV_CFLAGS)
|
||||
|
||||
endif
|
||||
|
||||
DEPPATH += --dep-path libgcc
|
||||
|
|
Loading…
Reference in a new issue