[llvm] 453d548 - [gn build] remove -std=c++11 in libcxx build pending discussion in 80e73f2 review thread

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 09:10:52 PST 2020


Author: Nico Weber
Date: 2020-02-24T12:10:40-05:00
New Revision: 453d54865aaeb029599aae59eb89cd6049c25ea3

URL: https://github.com/llvm/llvm-project/commit/453d54865aaeb029599aae59eb89cd6049c25ea3
DIFF: https://github.com/llvm/llvm-project/commit/453d54865aaeb029599aae59eb89cd6049c25ea3.diff

LOG: [gn build] remove -std=c++11 in libcxx build pending discussion in 80e73f2 review thread

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 9ca9d1bc8dd0..a6e9e21eac05 100644
--- a/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
+++ b/llvm/utils/gn/secondary/libcxx/src/BUILD.gn
@@ -51,11 +51,6 @@ config("cxx_config") {
     "-Wno-covered-switch-default",
   ]
   cflags_cc = [ "-nostdinc++" ]
-  if (target_os == "win") {
-    cflags_cc += [ "/std:c++11" ]
-  } else {
-    cflags_cc += [ "-std=c++11" ]
-  }
   defines = [ "_LIBCPP_BUILDING_LIBRARY" ]
   if (target_os == "win") {
     cflags += [ "/Zl" ]
@@ -274,7 +269,6 @@ if (libcxx_enable_experimental) {
   static_library("cxx_experimental") {
     output_dir = runtimes_dir
     output_name = "c++experimental"
-    cflags_cc = [ "-std=c++14" ]
     sources = [
       # Make `gn format` not collapse this, for sync_source_lists_from_cmake.py.
       "experimental/memory_resource.cpp",


        


More information about the llvm-commits mailing list