diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-12-10 12:05:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 12:05:58 +0300 |
commit | 5e9cb6d1c1de430965312927d5aed7fcb27bfa73 (patch) | |
tree | 8c86480813b3f34dfdc04868455e32ee5e11bf34 | |
parent | 4fdfb5b1fd5a40a7e77342bb5146b7adee5e1322 (diff) |
Use explicit arithmetic checks in the amd64 watchOS simulator. (#20647)mono-6.12.0.114
Fixes https://github.com/mono/mono/issues/20632.
Backport of #20639.
Co-authored-by: Imran Hameed <imhameed@microsoft.com>
-rw-r--r-- | mono/mini/mini-amd64.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mono/mini/mini-amd64.h b/mono/mini/mini-amd64.h index 6f17a901461..a5c03c4877c 100644 --- a/mono/mini/mini-amd64.h +++ b/mono/mini/mini-amd64.h @@ -474,8 +474,9 @@ typedef struct { #define MONO_ARCH_GSHAREDVT_SUPPORTED 1 -#if defined(HOST_TVOS) -/* No signals */ +#if defined(HOST_TVOS) || defined(HOST_WATCHOS) +/* Neither tvOS nor watchOS give signal handlers access to a ucontext_t, so we + * can't use signals to translate SIGFPE into a .NET-level exception. */ #define MONO_ARCH_NEED_DIV_CHECK 1 #endif |