From 33bcdc56371c88cc3cd4c6f80948802429d80ad2 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 28 Apr 2022 13:50:46 +0200 Subject: [PATCH] [ObjCRuntime] Specify the string comparison to use when comparing strings in Runtime.IsARM64CallingConvention. This may in some cases delay loading big chunks of .NET's globalization code at startup until after reaching user's Main method. --- src/ObjCRuntime/Runtime.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ObjCRuntime/Runtime.cs b/src/ObjCRuntime/Runtime.cs index 09fba6fbe53f..1012e4ad72b5 100644 --- a/src/ObjCRuntime/Runtime.cs +++ b/src/ObjCRuntime/Runtime.cs @@ -2018,7 +2018,7 @@ static bool GetIsARM64CallingConvention () return false; unsafe { - return NXGetLocalArchInfo ()->Name.StartsWith ("arm64"); + return NXGetLocalArchInfo ()->Name.StartsWith ("arm64", StringComparison.OrdinalIgnoreCase); } }