arch/arm/src/cmake/Toolchain.cmake: fix inverted conditions for C++ features

Fix inverted CONFIG_CXX_EXCEPTION/CONFIG_CXX_RTTI checks.
This commit is contained in:
YAMAMOTO Takashi 2024-01-04 17:07:50 +09:00 committed by Xiang Xiao
parent 05b8655bdd
commit fc53497ea2
1 changed files with 2 additions and 2 deletions

View File

@ -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()