From ce6330bf29a93ce05d0e0dbf75bae7ca854024d3 Mon Sep 17 00:00:00 2001 From: chao an Date: Thu, 31 Aug 2023 20:27:12 +0800 Subject: [PATCH] arch/arm64: sync with mainline change Signed-off-by: chao an --- arch/arm64/src/Toolchain.defs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/src/Toolchain.defs b/arch/arm64/src/Toolchain.defs index 47d1b55969..bf6a8eb8f5 100644 --- a/arch/arm64/src/Toolchain.defs +++ b/arch/arm64/src/Toolchain.defs @@ -166,10 +166,10 @@ endif ifeq ($(CONFIG_ARCH_TOOLCHAIN_GNU),y) ifeq ($(GCCVER),) - export GCCVER := $(shell $(CC) --version | grep gcc | sed -r "s/.* ([0-9]+\.[0-9]+).*/\1/") + export GCCVER := $(shell $(CC) --version | grep gcc | sed -r "s/.* ([0-9]+\.[0-9]+).*/\1/" | cut -d'.' -f1) endif - ifeq ($(GCCVER),12.2) + ifeq ($(GCCVER),12) LDFLAGS += --no-warn-rwx-segments endif endif