Skip to content

Commit e814ec8

Browse files
authored
Add s390x support if NET6_0_OR_GREATER
Added support for s390x architecture in Rid property.
1 parent 5a01981 commit e814ec8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rubjerg.Graphviz/GraphvizCommand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ internal static string Rid
2727
Architecture.Arm64 => "arm64",
2828
Architecture.X86 => "x86",
2929
Architecture.Arm => "arm",
30-
Architecture.S390x => "s390x",
30+
#if NET6_0_OR_GREATER
31+
Architecture.S390x => "s390x", // s390x support added in .NET 6
32+
endif
3133
_ => "unknown"
3234
};
3335

@@ -132,3 +134,4 @@ public static (byte[] stdout, string stderr) Exec(Graph input, string format = "
132134
}
133135

134136

137+

0 commit comments

Comments
 (0)