mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Application.mk: Fix Zig build break
Correct wrong make variable name for Zig main source, and update compile command for latest compiler. Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
0d5804c527
commit
5d972ba6d5
1 changed files with 4 additions and 3 deletions
|
|
@ -91,7 +91,7 @@ SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS) $(MAINSRC)
|
|||
OBJS = $(RAOBJS) $(CAOBJS) $(COBJS) $(CXXOBJS) $(RUSTOBJS) $(ZIGOBJS)
|
||||
|
||||
ifneq ($(BUILD_MODULE),y)
|
||||
OBJS += $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ) $(MAINZIGOBJS)
|
||||
OBJS += $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ) $(MAINZIGOBJ)
|
||||
endif
|
||||
|
||||
DEPPATH += --dep-path .
|
||||
|
|
@ -126,8 +126,9 @@ define ELFCOMPILERUST
|
|||
endef
|
||||
|
||||
define ELFCOMPILEZIG
|
||||
@echo "ZIG: $1"
|
||||
$(Q) $(ZIG) build-obj $(ZIGELFFLAGS) $($(strip $1)_ZIGELFFLAGS) $1 --name $2
|
||||
@echo "ZIG: $1"
|
||||
# Remove target suffix here since zig compiler add .o automatically
|
||||
$(Q) $(ZIG) build-obj $(ZIGELFFLAGS) $($(strip $1)_ZIGELFFLAGS) --name $(basename $2) $1
|
||||
endef
|
||||
|
||||
define ELFLD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue