From f22704ad4f7b6b8633dcd505187b1769d57e11a2 Mon Sep 17 00:00:00 2001 From: Maj Soklic Date: Fri, 17 May 2024 01:58:36 +0200 Subject: [PATCH] [CRT] Fix ARM64 VS2022 debug build (#6899) __globallocalestatus is missing on VS2022/ARM64 just like on Clang-cl. Addendum to 861360c65f4. CORE-14042 CORE-18200 --- sdk/lib/crt/startup/crtexe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/lib/crt/startup/crtexe.c b/sdk/lib/crt/startup/crtexe.c index afe23416b8d..2b5922f98c5 100644 --- a/sdk/lib/crt/startup/crtexe.c +++ b/sdk/lib/crt/startup/crtexe.c @@ -116,7 +116,7 @@ pre_c_init (void) { __setusermatherr (_matherr); } -#ifndef __clang__ /* FIXME: CORE-14042 */ +#if !defined(__clang__) && (!defined(_M_ARM64) || (_MSC_VER < 1930)) /* FIXME: CORE-14042 */ if (__globallocalestatus == -1) { }