From d086431a7111160f91f101f8e55042c96a7efe4c Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Wed, 31 Jan 2024 10:13:55 +0100 Subject: [PATCH] Disable inline TLS on linux-arm, it is not implemented --- src/coreclr/tools/aot/ILCompiler/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler/Program.cs b/src/coreclr/tools/aot/ILCompiler/Program.cs index 28785e0ed0f175..53f32c4cc266ef 100644 --- a/src/coreclr/tools/aot/ILCompiler/Program.cs +++ b/src/coreclr/tools/aot/ILCompiler/Program.cs @@ -533,7 +533,8 @@ void RunScanner() // If we have a scanner, we can inline threadstatics storage using the information we collected at scanning time. if (!Get(_command.NoInlineTls) && - (targetOS == TargetOS.Linux || (targetArchitecture == TargetArchitecture.X64 && targetOS == TargetOS.Windows))) + ((targetOS == TargetOS.Linux && targetArchitecture is TargetArchitecture.X64 or TargetArchitecture.ARM64) || + (targetOS == TargetOS.Windows && targetArchitecture is TargetArchitecture.X64))) { builder.UseInlinedThreadStatics(scanResults.GetInlinedThreadStatics()); }