boards/sim: Export LLVM style arch info

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2023-03-30 14:55:07 +08:00 committed by Alan Carvalho de Assis
parent 5d4e4b1919
commit bd14175de4

View File

@ -20,7 +20,6 @@
include $(TOPDIR)/.config
include $(TOPDIR)/tools/Config.mk
include $(TOPDIR)/tools/Zig.defs
# NuttX is sometimes built as a native target.
# In that case, the __NuttX__ macro is predefined by the compiler.
@ -125,8 +124,15 @@ endif
ifeq ($(CONFIG_SIM_M32),y)
ARCHCFLAGS += -m32
ARCHCXXFLAGS += -m32
LLVM_ARCHTYPE := x86
LLVM_CPUTYPE := i686
else
LLVM_ARCHTYPE := x86_64
LLVM_CPUTYPE := native
endif
LLVM_ABITYPE := gnu
ARCHPICFLAGS = -fpic
CC = $(CROSSDEV)cc
@ -144,7 +150,10 @@ NM = $(CROSSDEV)nm
OBJCOPY = $(CROSSDEV)objcopy
OBJDUMP = $(CROSSDEV)objdump
RUSTC = rustc --edition 2021
ZIG = zig
# Zig toolchain
include $(TOPDIR)/tools/Zig.defs
CFLAGS := $(ARCHOPTIMIZATION) $(ARCHCFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
CXXFLAGS := $(ARCHOPTIMIZATION) $(ARCHCXXFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe