gcov: Prevent pile insertion recursion
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
dad9ad949d
commit
2c37282f46
2 changed files with 9 additions and 0 deletions
|
@ -25,5 +25,7 @@ endif()
|
||||||
|
|
||||||
if(CONFIG_COVERAGE_MINI AND CONFIG_ARCH_TOOLCHAIN_GCC)
|
if(CONFIG_COVERAGE_MINI AND CONFIG_ARCH_TOOLCHAIN_GCC)
|
||||||
nuttx_add_system_library(libcoverage)
|
nuttx_add_system_library(libcoverage)
|
||||||
|
target_compile_options(libcoverage PRIVATE -fno-profile-arcs
|
||||||
|
-fno-test-coverage)
|
||||||
target_sources(libcoverage PRIVATE gcov.c)
|
target_sources(libcoverage PRIVATE gcov.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -24,6 +24,13 @@ endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_COVERAGE_MINI)$(CONFIG_ARCH_TOOLCHAIN_GCC),yy)
|
ifeq ($(CONFIG_COVERAGE_MINI)$(CONFIG_ARCH_TOOLCHAIN_GCC),yy)
|
||||||
CSRCS += gcov.c
|
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
|
endif
|
||||||
|
|
||||||
DEPPATH += --dep-path libgcc
|
DEPPATH += --dep-path libgcc
|
||||||
|
|
Loading…
Reference in a new issue