You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "casaroli (via GitHub)" <gi...@apache.org> on 2026/10/21 11:54:58 UTC

Re: [PR] libs: Keep the coverage of a loadable module with CONFIG_COVERAGE_MINI. [nuttx]

casaroli commented on code in PR #20813:
URL: https://github.com/apache/nuttx/pull/20813#discussion_r4336460656


##########
tools/Config.mk:
##########
@@ -70,6 +70,23 @@ MODULECC ?= $(CC)
 MODULELD ?= $(LD)
 MODULESTRIP ?= $(STRIP)
 
+# A loadable module of a flat or protected build can use the coverage
+# functions of the image only with CONFIG_COVERAGE_MINI and GCC.  Otherwise
+# the arch Toolchain.defs adds these options to the module options, so that
+# a module and its crt0 are built without the coverage of CONFIG_COVERAGE_ALL.
+
+ifeq ($(CONFIG_COVERAGE_ALL),y)

Review Comment:
   Done.



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org