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.
This commit is contained in:
SPRESENSE 2023-10-05 10:53:28 +09:00 committed by Xiang Xiao
parent 6521bdfa1f
commit bf6606f80c
1 changed files with 2 additions and 1 deletions

View File

@ -90,7 +90,8 @@ endif
config CXX_STANDARD config CXX_STANDARD
string "Language standard" string "Language standard"
default "gnu++20" default "gnu++20" if LIBCXX
default "gnu++17" if !LIBCXX
---help--- ---help---
Possible values: Possible values:
gnu++98/c++98, gnu++11/c++11, gnu++14/c++14, gnu++17/c++17 and gnu++20/c++20 gnu++98/c++98, gnu++11/c++11, gnu++14/c++14, gnu++17/c++17 and gnu++20/c++20