Skip to content

Commit

Permalink
libxx: Use gnu++20 option only if using libcxx
Browse files Browse the repository at this point in the history
Fix an issue that gnu++20 option is always used.
Essentially, when cxx is not used, gnu++17 should be retained.
  • Loading branch information
SPRESENSE committed Oct 5, 2023
1 parent 2e93882 commit 15d704c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/libxx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15d704c

Please sign in to comment.