This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 1d04884812 gcov: Add toolchain gcov dependency option
1d04884812 is described below
commit 1d0488481254dd83a8f0625b0fd7d570279ca935
Author: wangmingrong1 <[email protected]>
AuthorDate: Thu Nov 21 18:16:33 2024 +0800
gcov: Add toolchain gcov dependency option
Signed-off-by: wangmingrong1 <[email protected]>
---
boards/sim/sim/sim/configs/kasan/defconfig | 1 +
libs/libbuiltin/Kconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/boards/sim/sim/sim/configs/kasan/defconfig
b/boards/sim/sim/sim/configs/kasan/defconfig
index 369a239922..22c1e04eae 100644
--- a/boards/sim/sim/sim/configs/kasan/defconfig
+++ b/boards/sim/sim/sim/configs/kasan/defconfig
@@ -25,6 +25,7 @@ CONFIG_FS_AIO=y
CONFIG_FS_BINFS=y
CONFIG_FS_NAMED_SEMAPHORES=y
CONFIG_FS_PROCFS=y
+CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_INIT_ARGS="\"-c\", \"ostest;gcov -d;poweroff\""
CONFIG_INIT_ENTRYPOINT="nsh_main"
CONFIG_LIBC_MAX_EXITFUNS=1
diff --git a/libs/libbuiltin/Kconfig b/libs/libbuiltin/Kconfig
index 4d8c581ce4..c48cc613e7 100644
--- a/libs/libbuiltin/Kconfig
+++ b/libs/libbuiltin/Kconfig
@@ -57,6 +57,7 @@ config COVERAGE_MINI
config COVERAGE_TOOLCHAIN
bool "Link toolchain gcov library to the OS"
depends on ARCH_TOOLCHAIN_GCC
+ depends on HAVE_CXXINITIALIZE
---help---
Link the toolchain coverage library to the OS.