From 26a348a4604e77fed8cd78c67bd3a53862665927 Mon Sep 17 00:00:00 2001 From: zouboan Date: Sat, 11 Jun 2022 18:31:06 +0800 Subject: [PATCH] arch/arm: fix a typo in Toolchain.defs --- arch/arm/src/armv7-m/Toolchain.defs | 2 +- arch/arm/src/armv8-m/Toolchain.defs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/armv7-m/Toolchain.defs b/arch/arm/src/armv7-m/Toolchain.defs index deb910df49..47f7028bec 100644 --- a/arch/arm/src/armv7-m/Toolchain.defs +++ b/arch/arm/src/armv7-m/Toolchain.defs @@ -60,7 +60,7 @@ endif ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y) ARCHOPTIMIZATION += $(CONFIG_DEBUG_OPTLEVEL) else ifeq ($(CONFIG_DEBUG_FULLOPT),y) - ifeq ($(CONFIG_ARMV6M_TOOLCHAIN),CLANG) + ifeq ($(CONFIG_ARMV7M_TOOLCHAIN),CLANG) ARCHOPTIMIZATION += -Oz else ARCHOPTIMIZATION += -Os diff --git a/arch/arm/src/armv8-m/Toolchain.defs b/arch/arm/src/armv8-m/Toolchain.defs index a64e996041..f39ace9e98 100644 --- a/arch/arm/src/armv8-m/Toolchain.defs +++ b/arch/arm/src/armv8-m/Toolchain.defs @@ -60,7 +60,7 @@ endif ifeq ($(CONFIG_DEBUG_CUSTOMOPT),y) ARCHOPTIMIZATION += $(CONFIG_DEBUG_OPTLEVEL) else ifeq ($(CONFIG_DEBUG_FULLOPT),y) - ifeq ($(CONFIG_ARMV6M_TOOLCHAIN),CLANG) + ifeq ($(CONFIG_ARMV8M_TOOLCHAIN),CLANG) ARCHOPTIMIZATION += -Oz else ARCHOPTIMIZATION += -Os