Skip to content

Commit 5e9cb6d

Browse files
Use explicit arithmetic checks in the amd64 watchOS simulator. (#20647)
Fixes #20632. Backport of #20639. Co-authored-by: Imran Hameed <imhameed@microsoft.com>
1 parent 4fdfb5b commit 5e9cb6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mono/mini/mini-amd64.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,9 @@ typedef struct {
474474
#define MONO_ARCH_GSHAREDVT_SUPPORTED 1
475475

476476

477-
#if defined(HOST_TVOS)
478-
/* No signals */
477+
#if defined(HOST_TVOS) || defined(HOST_WATCHOS)
478+
/* Neither tvOS nor watchOS give signal handlers access to a ucontext_t, so we
479+
* can't use signals to translate SIGFPE into a .NET-level exception. */
479480
#define MONO_ARCH_NEED_DIV_CHECK 1
480481
#endif
481482

0 commit comments

Comments
 (0)