mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 23:42:05 +00:00
core/iwasm: Fix build on arm64 host (macOS) (#1625)
Add aarch64 files on nuttx platform Signed-off-by: Peter Bee <bijunda1@xiaomi.com> Change-Id: Idf94cf6aba01f1f9191412a71ef31c1a3b944c78
This commit is contained in:
parent
bbfa39c32c
commit
ceff11ee7e
|
@ -32,6 +32,12 @@ WAMR_BUILD_TARGET := RISCV32
|
|||
else ifeq ($(CONFIG_ARCH_SIM),y)
|
||||
ifeq ($(CONFIG_SIM_M32),y)
|
||||
WAMR_BUILD_TARGET := X86_32
|
||||
else ifeq ($(CONFIG_HOST_X86),y)
|
||||
WAMR_BUILD_TARGET := X86_32
|
||||
else ifeq ($(CONFIG_HOST_ARM),y)
|
||||
WAMR_BUILD_TARGET := ARM
|
||||
else ifeq ($(CONFIG_HOST_ARM64),y)
|
||||
WAMR_BUILD_TARGET := AARCH64
|
||||
else
|
||||
WAMR_BUILD_TARGET := X86_64
|
||||
endif
|
||||
|
@ -54,6 +60,11 @@ else ifeq ($(WAMR_BUILD_TARGET), X86_64)
|
|||
CFLAGS += -DBUILD_TARGET_X86_64
|
||||
INVOKE_NATIVE := invokeNative_em64.s
|
||||
AOT_RELOC := aot_reloc_x86_64.c
|
||||
else ifeq ($(WAMR_BUILD_TARGET), AARCH64)
|
||||
CFLAGS += -DBUILD_TARGET_AARCH64
|
||||
CFLAGS += -DBUILD_TARGET=\"$(WAMR_BUILD_TARGET)\"
|
||||
INVOKE_NATIVE := invokeNative_aarch64.s
|
||||
AOT_RELOC := aot_reloc_aarch64.c
|
||||
else ifeq ($(findstring ARM,$(WAMR_BUILD_TARGET)), ARM)
|
||||
CFLAGS += -DBUILD_TARGET_ARM
|
||||
CFLAGS += -DBUILD_TARGET=\"$(WAMR_BUILD_TARGET)\"
|
||||
|
|
Loading…
Reference in New Issue
Block a user