[llvm] 0332e98 - [gn build] port e58660750e76

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 10:54:50 PDT 2020


Author: Nico Weber
Date: 2020-10-30T13:49:27-04:00
New Revision: 0332e98cb8f5310bd29bb63991d025301a232eb2

URL: https://github.com/llvm/llvm-project/commit/0332e98cb8f5310bd29bb63991d025301a232eb2
DIFF: https://github.com/llvm/llvm-project/commit/0332e98cb8f5310bd29bb63991d025301a232eb2.diff

LOG: [gn build] port e58660750e76

Made necessary by c479e0c99459e4, which requires std::timespec
to exist, which it only does in c++17 and later.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/libcxx/src/BUILD.gn b/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
index 71668b65f72f..150ab6485a5a 100644
--- a/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
+++ b/llvm/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" ]


        


More information about the llvm-commits mailing list