Skip to content

Commit 6b8bcd6

Browse files
W-M-Rxiaoxiang781216
authored andcommitted
arm64/toolchain.defs: clang should specify target
If not specified, the corresponding libgcc. a cannot be found Signed-off-by: wangmingrong1 <[email protected]>
1 parent 3314201 commit 6b8bcd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm64/src/Toolchain.defs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ else ifeq ($(CONFIG_ARCH_CORTEX_R82),y)
6060
ARCHCPUFLAGS += -mcpu=cortex-r82
6161
endif
6262

63+
ifeq ($(CONFIG_ARM_TOOLCHAIN_CLANG),y)
64+
ARCHCPUFLAGS += --target=aarch64-none-elf
65+
endif
66+
6367
ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y)
6468
ARCHOPTIMIZATION += $(CONFIG_DEBUG_OPTLEVEL)
6569
else ifeq ($(CONFIG_DEBUG_FULLOPT),y)

0 commit comments

Comments
 (0)