[PATCH] D34556: [libcxx] Annotate c++17 aligned new/delete operators with availability attribute
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 23 07:59:43 PDT 2017
ahatanak created this revision.
This is needed because older versions of libc++ do not have these operators. If users target an older deployment target and try to compile programs in which these operators are explicitly called, the compiler will complain.
The following is the list of minimum deployment targets for the four OSes:
I followed the other availability macros in using "strict", but I'm not sure this was the right decision. The documentation seems to recommend not using "strict" (it says that weakly-linking is almost always a better API choice).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6789 bytes
Desc: not available
More information about the cfe-commits