From 7d5aae5a7427bf07b84ef30d90e81dc32cea32a5 Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Sat, 9 Sep 2023 18:37:01 -0500 Subject: [PATCH] Use uname on Linux. --- src/IKVM.Runtime/JVM.Properties.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/IKVM.Runtime/JVM.Properties.cs b/src/IKVM.Runtime/JVM.Properties.cs index 07d7952fd3..5d7a55310b 100644 --- a/src/IKVM.Runtime/JVM.Properties.cs +++ b/src/IKVM.Runtime/JVM.Properties.cs @@ -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", }; }