facebook / hhvm

A virtual machine for executing programs written in Hack.
https://hhvm.com
Other
18.19k stars 3k forks source link

Detect GCC properly #9210

Closed Atry closed 2 years ago

Atry commented 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.

Differential Revision: D39642449

facebook-github-bot commented 2 years ago

This pull request was exported from Phabricator. Differential Revision: D39642449