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:
parent
05b8655bdd
commit
fc53497ea2
|
@ -184,11 +184,11 @@ endif()
|
||||||
set(ARCHCFLAGS "-Wstrict-prototypes")
|
set(ARCHCFLAGS "-Wstrict-prototypes")
|
||||||
set(ARCHCXXFLAGS "-nostdinc++")
|
set(ARCHCXXFLAGS "-nostdinc++")
|
||||||
|
|
||||||
if(CONFIG_CXX_EXCEPTION)
|
if(NOT CONFIG_CXX_EXCEPTION)
|
||||||
string(APPEND ARCHCXXFLAGS " -fno-exceptions -fcheck-new")
|
string(APPEND ARCHCXXFLAGS " -fno-exceptions -fcheck-new")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_CXX_RTTI)
|
if(NOT CONFIG_CXX_RTTI)
|
||||||
string(APPEND ARCHCXXFLAGS " -fno-rtti")
|
string(APPEND ARCHCXXFLAGS " -fno-rtti")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue