subsys/cpp: add support for C++2b
Add the ability to enable support for C++2B (aka 23) to the build system. Signed-off-by: Dan Kalowsky <dkalowsky@amperecomputing.com>
This commit is contained in:
parent
c0811e9951
commit
9b33391147
|
@ -169,6 +169,8 @@ if(CONFIG_CPLUSPLUS)
|
|||
set(STD_CPP_DIALECT_FLAGS $<TARGET_PROPERTY:compiler-cpp,dialect_cpp17>)
|
||||
elseif(CONFIG_STD_CPP20)
|
||||
set(STD_CPP_DIALECT_FLAGS $<TARGET_PROPERTY:compiler-cpp,dialect_cpp20>)
|
||||
elseif(CONFIG_STD_CPP2B)
|
||||
set(STD_CPP_DIALECT_FLAGS $<TARGET_PROPERTY:compiler-cpp,dialect_cpp2b>)
|
||||
else()
|
||||
assert(0 "Unreachable code. Expected C++ standard to have been chosen. See Kconfig.zephyr.")
|
||||
endif()
|
||||
|
|
|
@ -42,6 +42,11 @@ config STD_CPP20
|
|||
help
|
||||
2020 C++ standard, previously known as C++2A.
|
||||
|
||||
config STD_CPP2B
|
||||
bool "C++ 2b"
|
||||
help
|
||||
Next revision of the C++ standard, which is expected to be published in 2023.
|
||||
|
||||
endchoice
|
||||
|
||||
config LIB_CPLUSPLUS
|
||||
|
|
Loading…
Reference in a new issue