From 5eee0feeab3299cedfc089de55f91ba79946a1aa Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 30 Oct 2020 13:48:44 -0400 Subject: [PATCH] [gn build] port e58660750e76 Made necessary by c479e0c99459e4, which requires std::timespec to exist, which it only does in c++17 and later. --- utils/gn/secondary/libcxx/src/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/gn/secondary/libcxx/src/BUILD.gn b/utils/gn/secondary/libcxx/src/BUILD.gn index 71668b65f72..150ab6485a5 100644 --- a/utils/gn/secondary/libcxx/src/BUILD.gn +++ b/utils/gn/secondary/libcxx/src/BUILD.gn @@ -53,7 +53,10 @@ config("cxx_config") { "-Wno-user-defined-literals", "-Wno-covered-switch-default", ] - cflags_cc = [ "-nostdinc++" ] + cflags_cc = [ + "-std=c++17", + "-nostdinc++", + ] defines = [ "_LIBCPP_BUILDING_LIBRARY" ] if (target_os == "win") { cflags += [ "/Zl" ]