-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Use the libc++ detection instead of clang detection around std:isinfinite #52164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
💊 CI failures summary and remediationsAs of commit 84bff65 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
Interestingly enough, found a PR about a similar issues in pybind11 that pytorch depends on pybind/pybind11#2569 |
…nite (pytorch#52164) Summary: Fixes pytorch#52163 The libc++ vs libstdc++ detection in the pre-processor is taken from https://stackoverflow.com/questions/31657499/how-to-detect-stdlib-libc-in-the-preprocessor Note that in our case `std:isinfinite` presents means that we don't need to import any additional headers to guarantee the `_LIBCPP_VERSION` presents for the `libc++`. Pull Request resolved: pytorch#52164 Reviewed By: albanD Differential Revision: D26413108 Pulled By: malfet fbshipit-source-id: 515e258d6758222c910ababf5172c3a275aff08f
Fixes #52163
The libc++ vs libstdc++ detection in the pre-processor is taken from https://stackoverflow.com/questions/31657499/how-to-detect-stdlib-libc-in-the-preprocessor
Note that in our case
std:isinfinitepresents means that we don't need to import any additional headers to guarantee the_LIBCPP_VERSIONpresents for thelibc++.