You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2023/01/31 15:50:34 UTC

[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #8381: tools: Make zig available for arm/riscv/sim

xiaoxiang781216 commented on code in PR #8381:
URL: https://github.com/apache/nuttx/pull/8381#discussion_r1092129405


##########
arch/arm/src/common/Toolchain.defs:
##########
@@ -258,6 +262,20 @@ else
   LDFLAGS += -nostdlib
 endif
 
+ifeq ($(CONFIG_ARM_THUMB),y)
+  ZARCH := thumb
+else
+  ZARCH := arm
+endif
+
+ifeq ($(CONFIG_ARCH_FPU),y)
+  ZEABI := gnueabihf
+else
+  ZEABI := gnueabi
+endif
+
+ZIGFLAGS = -target $(ZARCH)-freestanding-$(ZEABI)

Review Comment:
   why not use ZFLAGS?



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org