Skip to content

Commit 6669372

Browse files
no1wudixiaoxiang781216
authored andcommitted
wamr: Map armv7a/thumbv7a to armv7/thumbv7 for wamrc
Summary: - Added explicit mapping of thumbv7a architecture to thumbv7 in the WAMR toolchain definitions - WAMR's AOT compiler uses armv7/thumbv7 as the target architecture for all ARMv7-A processors - This includes Cortex-A series processors like Cortex-A9 which use the armv7a/thumbv7a ISA Impact: - Fixes AOT compilation for ARM Cortex-A processors using thumbv7a architecture - Maintains compatibility with WAMR's expected target architecture naming - Ensures consistent architecture targeting across all ARMv7-A processors - No impact on other architectures or build configurations Signed-off-by: Huang Qi <[email protected]>
1 parent f646211 commit 6669372

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interpreters/wamr/Toolchain.defs

+4
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,16 @@ else ifeq ($(CONFIG_ARCH_SIM),y)
3939
else
4040
WTARGET = x86_64
4141
endif
42+
else ifeq ($(LLVM_ARCHTYPE),thumbv7a)
43+
WTARGET = thumbv7
4244
else ifeq ($(findstring thumb,$(LLVM_ARCHTYPE)),thumb)
4345

4446
# target triple of thumb may very complex, such as thumbv8m.main+dsp+mve.fp+fp.dp
4547
# so we just use the target name before the first plus sign
4648

4749
WTARGET = $(shell echo $(LLVM_ARCHTYPE) | cut -d'+' -f1)
50+
else ifeq ($(LLVM_ARCHTYPE),armv7a)
51+
WTARGET = armv7
4852
endif
4953

5054
# If WTARGET is not defined, then use the same as LLVM_ARCHTYPE

0 commit comments

Comments
 (0)