xiaoxiang781216 commented on code in PR #1692:
URL: https://github.com/apache/nuttx-apps/pull/1692#discussion_r1155120786
##########
interpreters/wamr/Toolchain.defs:
##########
@@ -119,9 +52,16 @@ else ifeq ($(CONFIG_ARCH_SIM),y)
else
WTARGET = x86_64
endif
+else
+
+ # Flags for other architectures (arm or riscv)
+
+ WTARGET = $(LLVM_ARCHTYPE)
+ WCPU = $(LLVM_CPUTYPE)
+
endif
-RCFLAGS += --target=$(WTARGET) $(WCPU)
+RCFLAGS += --target=$(WTARGET) --target-abi=$(LLVM_ABITYPE) --cpu=$(WCPU)
Review Comment:
should we move this file to nuttx/tools/ folder like rust and zig?
--
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]