You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2023/10/12 13:53:38 UTC
[nuttx] branch releases/12.3 updated: libxx: Use gnu++20 option only if using libcxx
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch releases/12.3
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.3 by this push:
new 00c5fa60af libxx: Use gnu++20 option only if using libcxx
00c5fa60af is described below
commit 00c5fa60af491ea58a93c930a2c60e823bb114ea
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Thu Oct 5 10:53:28 2023 +0900
libxx: Use gnu++20 option only if using libcxx
Fix an issue that gnu++20 option is always used.
Essentially, when cxx is not used, gnu++17 should be retained.
---
libs/libxx/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libs/libxx/Kconfig b/libs/libxx/Kconfig
index 2bc325d1af..87c8689e96 100644
--- a/libs/libxx/Kconfig
+++ b/libs/libxx/Kconfig
@@ -90,7 +90,8 @@ endif
config CXX_STANDARD
string "Language standard"
- default "gnu++20"
+ default "gnu++20" if LIBCXX
+ default "gnu++17" if !LIBCXX
---help---
Possible values:
gnu++98/c++98, gnu++11/c++11, gnu++14/c++14, gnu++17/c++17 and gnu++20/c++20