mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
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:
committed by
Xiang Xiao
parent
05b8655bdd
commit
fc53497ea2
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user