Skip to content

Commit a3c2061

Browse files
committed
Use RuntimeInformation.ProcessArchitecture
1 parent 9608b9f commit a3c2061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Core/Platform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ internal enum OperatingSystemType
1212

1313
internal static class Platform
1414
{
15-
public static string ProcessorArchitecture => IntPtr.Size == 8 ? "x64" : "x86";
15+
public static string ProcessorArchitecture => RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant();
1616

1717
public static OperatingSystemType OperatingSystem
1818
{

0 commit comments

Comments
 (0)