Skip to content

Commit

Permalink
Disable inline TLS on linux-arm, it is not implemented (#97746)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara authored Jan 31, 2024
1 parent 5b0eb59 commit ba4c0be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/tools/aot/ILCompiler/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit ba4c0be

Please # to comment.