Closed Atry closed 2 years ago
Summary: We should not rely __GNUC__ to detect if the compiler is GCC, because Clang also defines __GNUC__. This diff instead uses __GLIBCXX__ to detect libstdc++ and uses !defined(__clang__) to exclude clang.
__GNUC__
__GLIBCXX__
!defined(__clang__)
clang
Differential Revision: D39642449
This pull request was exported from Phabricator. Differential Revision: D39642449
Summary: We should not rely
__GNUC__
to detect if the compiler is GCC, because Clang also defines__GNUC__
. This diff instead uses__GLIBCXX__
to detect libstdc++ and uses!defined(__clang__)
to excludeclang
.Differential Revision: D39642449