[libcxx-commits] [libcxx] [libc++][NFC] Simplify features for detecting atomics' support. (PR #75553)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 14 20:35:55 PST 2023


================
@@ -183,25 +183,26 @@ def _getAndroidDeviceApi(cfg):
         actions=[AddLinkFlag("-latomic")],
     ),
     Feature(
-        name="non-lockfree-atomics",
+        name="has-64-bit-atomics",
         when=lambda cfg: sourceBuilds(
             cfg,
             """
             #include <atomic>
-            struct Large { int storage[100]; };
+            struct Large { char storage[64/8]; };
----------------
EricWF wrote:

I have a weak preference for just writing `8`. I'm not used to thinking about indexes as counting the number of bits.

https://github.com/llvm/llvm-project/pull/75553


More information about the libcxx-commits mailing list