Add _LIBCPP_DISABLE_AVAILABILITY to the site config options, and add a
cmake option LIBCXX_DISABLE_AVAILABILITY to control the site config.
This is similar to other options which influence headers and therefore
shold have some way to be set persistently.
Details
- Reviewers
EricWF mclow.lists mehdi_amini dexonsmith
Diff Detail
- Build Status
Buildable 9283 Build 9283: arc lint + arc unit
Event Timeline
Seems fine to me. Adding @dexonsmith (I don't know who maintain libc++ at Apple right now)
The _LIBCPP_DISABLE_AVAILABILITY macro already exists, but since it influences headers, it's a lot more useful to have it as a site config option, so that it can be set consistently.
I have an internal codebase where the availability macros cause issues, for complicated reasons that I unfortunately can't go into detail about. Rather than having to add _LIBCPP_DISABLE_AVAILABILITY to every single build using the libc++ headers, it would be really nice to be able to do the disabling via the site config. I know that's not a very satisfying explanation, but this seemed like a small and generally useful change, and it's consistent with how we're handling other macros that influence headers.
@mclow.lists, any final verdict here? I ended up doing this differently for my internal use case, so if you think this isn't generally useful, I'm happy to abandon.
I ended up handling this differently internally (via a custom site config). If someone else ends up needing the same functionality, they can revive it.