[libcxx-commits] [PATCH] D75183: [libcxx] Guard C++20 atomic type aliases

JF Bastien via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 26 10:13:37 PST 2020


jfb added a comment.

Please add extensive tests, this will absolutely break in the future without them.



================
Comment at: libcxx/include/atomic:2756
     // No signed/unsigned lock-free types
+# define _LIBCPP_CANNOT_DEFINE_ATOMIC_LOCK_FREE_TYPE_ALIASES
 #endif
----------------
This should check that the configuration is indeed freestanding, and bail out if it's hosted.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75183/new/

https://reviews.llvm.org/D75183





More information about the libcxx-commits mailing list