You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/01/04 15:20:14 UTC
(nuttx) 04/05: arch/sim/src/cmake/Toolchain.cmake: fix inverted conditions for C++ features
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 05b8655bdd7c3a0d1524791f207686924f9bf127
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Jan 4 17:07:02 2024 +0900
arch/sim/src/cmake/Toolchain.cmake: fix inverted conditions for C++ features
Fix inverted CONFIG_CXX_EXCEPTION/CONFIG_CXX_RTTI checks.
---
arch/sim/src/cmake/Toolchain.cmake | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/sim/src/cmake/Toolchain.cmake b/arch/sim/src/cmake/Toolchain.cmake
index 47ef9e5f02..c3af008a26 100644
--- a/arch/sim/src/cmake/Toolchain.cmake
+++ b/arch/sim/src/cmake/Toolchain.cmake
@@ -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()