Skip to content

Commit 0b03ca1

Browse files
anjiahao1xiaoxiang781216
authored andcommitted
macos:fix sim:module build warning
CP: /Users/vela/ajh/nuttx/include/nuttx/fs/hostfs.h CC: inode/fs_inodebasename.c ar: no archive members specified usage: ar -d [-TLsv] archive file ... ar -m [-TLsv] archive file ... ar -m [-abiTLsv] position archive file ... ar -p [-TLsv] archive [file ...] ar -q [-cTLsv] archive file ... ar -r [-cuTLsv] archive file ... ar -r [-abciuTLsv] position archive file ... ar -t [-TLsv] archive [file ...] ar -x [-ouTLsv] archive [file ...] Signed-off-by: anjiahao <anjiahao@xiaomi.com>
1 parent c7a905e commit 0b03ca1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Application.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ endif
273273
$(PREFIX).built: $(AROBJS)
274274
$(call SPLITVARIABLE,ALL_OBJS,$(AROBJS),100)
275275
$(foreach BATCH, $(ALL_OBJS_TOTAL), \
276-
$(shell $(call ARLOCK, $(call CONVERT_PATH,$(BIN)), $(ALL_OBJS_$(BATCH)))) \
276+
$(if $(strip $(ALL_OBJS_$(BATCH))), \
277+
$(shell $(call ARLOCK, $(call CONVERT_PATH,$(BIN)), $(ALL_OBJS_$(BATCH)))) \
278+
) \
277279
)
278280
$(Q) touch $@
279281

0 commit comments

Comments
 (0)