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/incubator-nuttx.git

commit c8e4adad9fd1e3c47fcb2b7a1140978fca419e8a
Author: zouboan <[email protected]>
AuthorDate: Sat Nov 5 18:07:51 2022 +0800

    tools:fix 'input line is too long error' in Windows native build
---
 tools/Config.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tools/Config.mk b/tools/Config.mk
index 9e4f8da962..e05c85fa81 100644
--- a/tools/Config.mk
+++ b/tools/Config.mk
@@ -523,12 +523,18 @@ ifeq ($(CONFIG_ARCH_COVERAGE),y)
 endif
 
 ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+
+define NEWLINE
+
+
+endef
+
 define CLEAN
        $(Q) if exist *$(OBJEXT) (del /f /q *$(OBJEXT))
        $(Q) if exist *$(LIBEXT) (del /f /q *$(LIBEXT))
        $(Q) if exist *~ (del /f /q *~)
        $(Q) if exist (del /f /q  .*.swp)
-       $(Q) if exist $(OBJS) (del /f /q $(OBJS))
+       $(foreach OBJ, $(OBJS), $(NEWLINE) $(call DELFILE,$(OBJ)))
        $(Q) if exist $(BIN) (del /f /q  $(BIN))
        $(Q) if exist $(EXTRA) (del /f /q  $(EXTRA))
 endef

Reply via email to