[libcxx-commits] [libcxx] [libc++] Remove _LIBCPP_DISABLE_AVAILABILITY macro (PR #112952)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 21 07:28:33 PDT 2024


================
@@ -85,6 +85,9 @@ Deprecations and Removals
 - The function ``__libcpp_verbose_abort()`` is now ``noexcept``, to match ``std::terminate()``. (The combination of
   ``noexcept`` and ``[[noreturn]]`` has special significance for function effects analysis.)
 
+- The ``_LIBCPP_DISABLE_AVAILABILITY`` macro that was used to force-disable availability markup has now been removed.
+  Whether availability markup is used by the library is now solely controlled at configuration-time.
----------------
ldionne wrote:

@h-vetinari I think what you want here is simply to define `LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS=OFF` at CMake configuration time. In fact, `LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS=OFF` is the default, so I think there's something I'm not understanding about your use case. Why do you manually enable `LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS=ON` and then attempt to disable it via some other mechanism?

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


More information about the libcxx-commits mailing list