It's useful to be able to disable visibility annotations entirely; for
example, if we're building libc++ static to include in another library,
and we don't want any libc++ functions getting exported out of that
library. This is a generalization of _LIBCPP_DISABLE_DLL_IMPORT_EXPORT.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
There are two usages of _LIBCPP_DISABLE_DLL_IMPORT_EXPORT in CMakeLists.txt and __config_site.in that need to be changed as well.
Also what about users of the existing name _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS? Should we #error to inform them of the change or should we automatically translate it to the new name for them?
Oops, will fix.
Also what about users of the existing name _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS? Should we #error to inform them of the change or should we automatically translate it to the new name for them?
I'd prefer #error; that way we can eventually just drop the macro. Ideally there wouldn't be too many users to begin with, since it was only introduced two months ago, and it hasn't made its way to a release yet.
I'll upload a new diff with those changes later today.
include/__config | ||
---|---|---|
513–516 ↗ | (On Diff #79358) | I'd like to remove this before the 4.0 release, if that's all right with you. I don't think there would be many users of the existing macro, and I'd prefer it to not make its way to a release. |
If it hasn't even made it into a release then we probably don't need the #error at all. Feel free to commit with or w/o it.
Either way this LGTM.