libxx: Add CXX_STANDARD to select -std=c++??

and default to "c++17"

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-01-16 02:17:19 +08:00
committed by Petro Karashchenko
parent 6b4da4ad6e
commit f64da13e9b
14 changed files with 54 additions and 1 deletions
+6
View File
@@ -85,6 +85,12 @@ endchoice
endif
config CXX_STANDARD
string "Language standard"
default "c++17"
---help---
Possible values: c++98, c++11, c++14, c++17 and c++20
config CXX_EXCEPTION
bool "Enable Exception Support"
-1
View File
@@ -50,7 +50,6 @@ ifeq ($(wildcard libcxx/.git),)
$(call DELDIR, libcxx)
endif
CXXFLAGS += -std=c++17
CXXFLAGS += ${DEFINE_PREFIX}_LIBCPP_BUILDING_LIBRARY
ifeq ($(CONFIG_LIBSUPCXX), y)