yf13 commented on code in PR #2260:
URL: https://github.com/apache/nuttx-apps/pull/2260#discussion_r1455419257


##########
Application.mk:
##########
@@ -235,9 +235,16 @@ $(MAINCOBJ): %.c$(SUFFIX)$(OBJEXT): %.c
        $(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
                $(call ELFCOMPILE, $<, $@), $(call COMPILE, $<, $@))
 
-$(PROGLIST): $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ)
+$(MAINZIGOBJ): %$(ZIGEXT)$(SUFFIX)$(OBJEXT): %$(ZIGEXT)
+       $(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
+               $(call ELFCOMPILEZIG,$<,$@), $(call COMPILEZIG, $<, $@))
+       $(Q) echo $(MAINZIGOBJ) $@

Review Comment:
   When this is removed, got errors like `*** No rule to make target 
'hello_zig.zig.home.yf.Projects.Nuttx.apps.examples.hello_zig.o', needed by 
'/home/yf/Projects/Nuttx/apps/bin/hello_zig'.  Stop`
   
   How about guarding it by CONFIG_BUILD_KERNEL only? that is safer as it won't 
affect non-KERNEL cases.



-- 
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]

Reply via email to