OSDN Git Service

[libcxxabi] Define _LIBCXXABI_WEAK properly for mingw compilers
authorMartin Storsjö <martin@martin.st>
Wed, 21 Oct 2020 06:11:31 +0000 (09:11 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 22 Oct 2020 06:00:57 +0000 (09:00 +0300)
commit5449ea9f90ea8e0adb1f8427b82dd30ccb31d96c
treeb3c1f93079179ef84f9a7ed252cd82c017a1f8a5
parent8e8cc587a55951ee46f307337a88a23cb45b9dd6
[libcxxabi] Define _LIBCXXABI_WEAK properly for mingw compilers

Copy over the compiler detection structure from libcxx, and set
_LIBCXXABI_WEAK like _LIBCPP_WEAK is set in libcxx.

This allows users to override operator new/delete, if using those
operators from libcxxabi instead of from libcxx.

Differential Revision: https://reviews.llvm.org/D89863
libcxxabi/include/__cxxabi_config.h