From fc53497ea2cf4ec35edd59d885e745038df91cbb Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 4 Jan 2024 17:07:50 +0900 Subject: [PATCH] arch/arm/src/cmake/Toolchain.cmake: fix inverted conditions for C++ features Fix inverted CONFIG_CXX_EXCEPTION/CONFIG_CXX_RTTI checks. --- arch/arm/src/cmake/Toolchain.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/cmake/Toolchain.cmake b/arch/arm/src/cmake/Toolchain.cmake index 3d3de23681..8039952d9d 100644 --- a/arch/arm/src/cmake/Toolchain.cmake +++ b/arch/arm/src/cmake/Toolchain.cmake @@ -184,11 +184,11 @@ endif() set(ARCHCFLAGS "-Wstrict-prototypes") set(ARCHCXXFLAGS "-nostdinc++") -if(CONFIG_CXX_EXCEPTION) +if(NOT CONFIG_CXX_EXCEPTION) string(APPEND ARCHCXXFLAGS " -fno-exceptions -fcheck-new") endif() -if(CONFIG_CXX_RTTI) +if(NOT CONFIG_CXX_RTTI) string(APPEND ARCHCXXFLAGS " -fno-rtti") endif()