[llvm] 7aa02f9 - [gn] port c6f3b7bcd0596d3 (libc++ __config_site HAS_NO -> HAS)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 07:25:31 PST 2024


Author: Nico Weber
Date: 2024-11-07T10:25:18-05:00
New Revision: 7aa02f9e3f90b13371e34f65f2828f534f935607

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

LOG: [gn] port c6f3b7bcd0596d3 (libc++ __config_site HAS_NO -> HAS)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/libcxx/include/BUILD.gn b/llvm/utils/gn/secondary/libcxx/include/BUILD.gn
index 776f1d32c5f520..8a9aff9c05d185 100644
--- a/llvm/utils/gn/secondary/libcxx/include/BUILD.gn
+++ b/llvm/utils/gn/secondary/libcxx/include/BUILD.gn
@@ -19,23 +19,23 @@ if (current_toolchain == default_toolchain) {
       "_LIBCPP_ABI_FORCE_ITANIUM=",
       "_LIBCPP_ABI_FORCE_MICROSOFT=",
       "_LIBCPP_EXTRA_SITE_DEFINES=",
-      "_LIBCPP_HAS_NO_FILESYSTEM=",
-      "_LIBCPP_HAS_NO_THREADS=",
-      "_LIBCPP_HAS_NO_MONOTONIC_CLOCK=",
+      "_LIBCPP_HAS_FILESYSTEM=1",
+      "_LIBCPP_HAS_THREADS=1",
+      "_LIBCPP_HAS_MONOTONIC_CLOCK=1",
       "_LIBCPP_HAS_MUSL_LIBC=",
       "_LIBCPP_HAS_THREAD_API_PTHREAD=",
       "_LIBCPP_HAS_THREAD_API_EXTERNAL=",
       "_LIBCPP_HAS_THREAD_API_WIN32=",
       "_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS=",
-      "_LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS=1",
+      "_LIBCPP_HAS_VENDOR_AVAILABILITY_ANNOTATIONS=",
       "_LIBCPP_NO_VCRUNTIME=",
       "_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=",
-      "_LIBCPP_HAS_NO_RANDOM_DEVICE=",
-      "_LIBCPP_HAS_NO_LOCALIZATION=",
-      "_LIBCPP_HAS_NO_UNICODE=",
-      "_LIBCPP_HAS_NO_WIDE_CHARACTERS=",
+      "_LIBCPP_HAS_RANDOM_DEVICE=1",
+      "_LIBCPP_HAS_LOCALIZATION=1",
+      "_LIBCPP_HAS_UNICODE=1",
+      "_LIBCPP_HAS_WIDE_CHARACTERS=1",
       "_LIBCPP_HAS_NO_STD_MODULES=",
-      "_LIBCPP_HAS_NO_TERMINAL=",
+      "_LIBCPP_HAS_TERMINAL=1",
       "_LIBCPP_INSTRUMENTED_WITH_ASAN=",
       "_LIBCPP_ABI_DEFINES=",
       "_LIBCPP_HARDENING_MODE_DEFAULT=_LIBCPP_HARDENING_MODE_NONE",
@@ -53,10 +53,10 @@ if (current_toolchain == default_toolchain) {
     } else {
       values += [ "_LIBCPP_ABI_NAMESPACE=__" + libcxx_abi_version ]
     }
-    if (!libcxx_enable_time_zone_database) {
-      values += [ "_LIBCPP_HAS_NO_TIME_ZONE_DATABASE=1" ]
+    if (libcxx_enable_time_zone_database) {
+      values += [ "_LIBCPP_HAS_TIME_ZONE_DATABASE=1" ]
     } else {
-      values += [ "_LIBCPP_HAS_NO_TIME_ZONE_DATABASE=" ]
+      values += [ "_LIBCPP_HAS_TIME_ZONE_DATABASE=" ]
     }
   }
 


        


More information about the llvm-commits mailing list