File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ public enum Platform
30
30
/// <summary>
31
31
/// Wasm
32
32
/// </summary>
33
- Wasm
33
+ Wasm ,
34
+
35
+ /// <summary>
36
+ /// S390x
37
+ /// </summary>
38
+ S390x
34
39
}
35
40
}
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ public static string ToConfig(this Platform platform)
20
20
return "ARM" ;
21
21
case Platform . Arm64 :
22
22
return "ARM64" ;
23
+ case Platform . S390x :
24
+ return "S390x" ;
23
25
default :
24
26
return "AnyCPU" ;
25
27
}
Original file line number Diff line number Diff line change @@ -233,9 +233,10 @@ internal static Runtime GetCurrentRuntime()
233
233
234
234
public static Platform GetCurrentPlatform ( )
235
235
{
236
- // it's not part of .NET Standard 2.0, so we use a hack
237
- // https://github.com/dotnet/runtime/blob/2c573b59aaaf3fd17e2ecab95ad3769f195d2dbc /src/libraries/System.Runtime.InteropServices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/Architecture.cs#L12
236
+ // these are not part of .NET Standard 2.0, so we use a hack
237
+ // https://github.com/dotnet/runtime/blob/d81ad044fa6830f5f31f6b6e8224ebf66a3c298c /src/libraries/System.Runtime.InteropServices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/Architecture.cs#L12-L13
238
238
const Architecture Wasm = ( Architecture ) 4 ;
239
+ const Architecture S390x = ( Architecture ) 5 ;
239
240
240
241
switch ( ProcessArchitecture )
241
242
{
@@ -249,6 +250,8 @@ public static Platform GetCurrentPlatform()
249
250
return Platform . X86 ;
250
251
case Wasm :
251
252
return Platform . Wasm ;
253
+ case S390x :
254
+ return Platform . S390x ;
252
255
default :
253
256
throw new ArgumentOutOfRangeException ( ) ;
254
257
}
You can’t perform that action at this time.
0 commit comments