From 15d704cf5206b850dadd503b91e50d1bd0d2915e Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Thu, 5 Oct 2023 10:53:28 +0900 Subject: [PATCH] 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 2bc325d1af2cb..87c8689e96937 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