[llvm] b432eb5 - [gn build] (manually) port 3b625060fc915 (-std=c++20) more

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 15 09:35:44 PST 2022


Author: Nico Weber
Date: 2022-02-15T12:35:36-05:00
New Revision: b432eb5c8412ca48af7c81e24f747434c75a3769

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

LOG: [gn build] (manually) port 3b625060fc915 (-std=c++20) more

8c54583b2e ported this only for libcxx, not libcxxabi.
As of 05337a756c6, it's needed for libcxxabi too.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/libcxxabi/src/BUILD.gn b/llvm/utils/gn/secondary/libcxxabi/src/BUILD.gn
index 69a17db39e1e..88cfa08795a7 100644
--- a/llvm/utils/gn/secondary/libcxxabi/src/BUILD.gn
+++ b/llvm/utils/gn/secondary/libcxxabi/src/BUILD.gn
@@ -65,7 +65,10 @@ config("cxxabi_config") {
     # Some files depend on libc++ internals.
     "//libcxx/src",
   ]
-  cflags_cc = [ "-nostdinc++" ]
+  cflags_cc = [
+    "-std=c++20",
+    "-nostdinc++",
+  ]
   defines = [ "_LIBCXXABI_BUILDING_LIBRARY" ]
   if (target_os == "win") {
     defines += [ "_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS" ]


        


More information about the llvm-commits mailing list