[gn build] port e58660750e76
authorNico Weber <thakis@chromium.org>
Fri, 30 Oct 2020 17:48:44 +0000 (13:48 -0400)
committerNico Weber <thakis@chromium.org>
Fri, 30 Oct 2020 17:49:27 +0000 (13:49 -0400)
Made necessary by c479e0c99459e4, which requires std::timespec
to exist, which it only does in c++17 and later.

llvm/utils/gn/secondary/libcxx/src/BUILD.gn

index 71668b6..150ab64 100644 (file)
@@ -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" ]