arch/sim/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:02 +09:00 committed by Xiang Xiao
parent 7d6612d0e5
commit 05b8655bdd

View File

@ -101,11 +101,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()