Skip to content

Commit

Permalink
Use uname on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Sep 9, 2023
1 parent deb1de0 commit 7d5aae5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/IKVM.Runtime/JVM.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,9 @@ static unsafe string GetArch()
{
return RuntimeInformation.ProcessArchitecture switch
{
Architecture.X64 => "amd64",
Architecture.X86 => "i386",
Architecture.Arm => "arm",
Architecture.Arm64 => "aarch64",
_ => "unknown",
Architecture.X64 => "amd64",
_ => Mono.Unix.Native.Syscall.uname(out var utsname) == 0 ? utsname.machine : "unknown",
};
}

Expand Down

0 comments on commit 7d5aae5

Please sign in to comment.