xiaoxiang781216 commented on code in PR #14557:
URL: https://github.com/apache/nuttx/pull/14557#discussion_r1829876255
##########
libs/libc/gcov/Kconfig:
##########
@@ -0,0 +1,34 @@
+#
+# For a description of the syntax of this configuration file,
+# see the file kconfig-language.txt in the NuttX tools repository.
+#
+
+config LIB_GCOV
Review Comment:
remove and add LIBC_GCOV_NONE as one of choice
##########
libs/libc/gcov/Kconfig:
##########
@@ -0,0 +1,34 @@
+#
+# For a description of the syntax of this configuration file,
+# see the file kconfig-language.txt in the NuttX tools repository.
+#
+
+config LIB_GCOV
+ tristate "Enable GCOV support"
+ select HAVE_CXXINITIALIZE
+ default n
+ ---help---
+ Enable GCOV support for code coverage analysis.
+ After turning on this option, code coverage can be analyzed.
+ If this option is enabled, image size and performance will be
+ significantly reduced. Before use, you need to add the
+ "-fprofile-instr-generate -fcoverage-mapping" compilation
parameters
+ to the file to be analyzed.
+
+choice
+
+prompt "Select GCOV library source"
+ default GCOV_LIB_SOURCE_NUTTX
+
+config GCOV_LIB_SOURCE_TOOLCHAINS
+ bool "Toolchains"
+ select COMPILER_RT_PROFILE if ARCH_TOOLCHAIN_CLANG
+ ---help---
+ Use the GCOV library source provided by the toolchain.
+
+config GCOV_LIB_SOURCE_NUTTX
Review Comment:
```suggestion
config LIB_GCOV_LITE
```
##########
libs/libc/gcov/Kconfig:
##########
@@ -0,0 +1,34 @@
+#
+# For a description of the syntax of this configuration file,
+# see the file kconfig-language.txt in the NuttX tools repository.
+#
+
+config LIB_GCOV
+ tristate "Enable GCOV support"
+ select HAVE_CXXINITIALIZE
+ default n
+ ---help---
+ Enable GCOV support for code coverage analysis.
+ After turning on this option, code coverage can be analyzed.
+ If this option is enabled, image size and performance will be
+ significantly reduced. Before use, you need to add the
+ "-fprofile-instr-generate -fcoverage-mapping" compilation
parameters
+ to the file to be analyzed.
+
+choice
+
+prompt "Select GCOV library source"
+ default GCOV_LIB_SOURCE_NUTTX
Review Comment:
```suggestion
default LIBC_GCOV_NONE`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]