Skip to content

Commit 496022e

Browse files
pytorchbotswolchok
andauthored
ET_HAS_EXCEPTIONS: require defined(_MSC_VER) to conclude _HAS_EXCEPTIONS implies exceptions are on (#11831)
This PR was created by the merge bot to help merge the original PR into the main branch. ghstack PR number: #11770 by @swolchok ^ Please use this as the source of truth for the PR details, comments, and reviews ghstack PR base: https://github.com/pytorch/executorch/tree/gh/swolchok/461/base ghstack PR head: https://github.com/pytorch/executorch/tree/gh/swolchok/461/head Merge bot PR base: https://github.com/pytorch/executorch/tree/main Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/swolchok/461/orig @diff-train-skip-merge Co-authored-by: Scott Wolchok <[email protected]>
1 parent e0f81d8 commit 496022e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/platform/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ using ssize_t = ptrdiff_t;
173173

174174
#ifdef __EXCEPTIONS
175175
#define ET_HAS_EXCEPTIONS 1
176-
#elif defined(_HAS_EXCEPTIONS) && _HAS_EXCEPTIONS
176+
#elif defined(_MSC_VER) && defined(_HAS_EXCEPTIONS) && _HAS_EXCEPTIONS
177177
#define ET_HAS_EXCEPTIONS 1
178178
#else
179179
#define ET_HAS_EXCEPTIONS 0

0 commit comments

Comments
 (0)