This is an automated email from the ASF dual-hosted git repository. gustavonihei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit c1e5ba4602fe6a18f2443dd803b64fcfb20d7254 Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Sat Apr 30 03:41:01 2022 +0800 libxx: Always build libcxx with -std=c++17 since the implementation of barrier require the aligned new which is defined in C++ 17 Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- libs/libxx/libcxx.defs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libxx/libcxx.defs b/libs/libxx/libcxx.defs index 8ce3667c8e..c79a5eb82c 100644 --- a/libs/libxx/libcxx.defs +++ b/libs/libxx/libcxx.defs @@ -45,7 +45,7 @@ distclean:: $(Q) $(DIRUNLINK) $(TOPDIR)/include/libcxx $(call DELDIR, libcxx) -CXXFLAGS += ${shell $(DEFINE) "$(CC)" _LIBCPP_BUILDING_LIBRARY} +CXXFLAGS += -std=c++17 ${shell $(DEFINE) "$(CC)" _LIBCPP_BUILDING_LIBRARY} ifeq ($(CONFIG_LIBSUPCXX), y) CXXFLAGS += ${shell $(DEFINE) "$(CC)" __GLIBCXX__}