-
Notifications
You must be signed in to change notification settings - Fork 594
Define ET_HAS_EXCEPTIONS macro #11603
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
Define ET_HAS_EXCEPTIONS macro #11603
Conversation
To support passing ET_USE_PYTORCH_HEADERS only when exceptions are enabled. Differential Revision: [D76470039](https://our.internmc.facebook.com/intern/diff/D76470039/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11603
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit f713d4b with merge base d660bde ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D76470039 |
@@ -171,6 +171,14 @@ | |||
using ssize_t = ptrdiff_t; | |||
#endif | |||
|
|||
#ifdef __EXCEPTIONS | |||
#define ET_HAS_EXCEPTIONS 1 | |||
#elif defined(_HAS_EXCEPTIONS) && _HAS_EXCEPTIONS |
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.
just curious where do __EXCEPTIONS and _HAS_EXCEPTIONS come from?
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.
Oh its in the test plan internally. From the compilers.
To support passing ET_USE_PYTORCH_HEADERS only when exceptions are enabled. Differential Revision: [D76470039](https://our.internmc.facebook.com/intern/diff/D76470039/) [ghstack-poisoned]
This pull request was exported from Phabricator. Differential Revision: D76470039 |
051cb78
into
gh/swolchok/456/base
Pull Request resolved: #11603 To support passing ET_USE_PYTORCH_HEADERS only when exceptions are enabled. ghstack-source-id: 290334875 @exported-using-ghexport Differential Revision: [D76470039](https://our.internmc.facebook.com/intern/diff/D76470039/)
Stack from ghstack (oldest at bottom):
To support passing ET_USE_PYTORCH_HEADERS only when exceptions are enabled.
Differential Revision: D76470039