go: add mipsel/riscv64/s390x support

This commit is contained in:
Jörg Thalheim
2021-12-10 09:19:23 +01:00
parent dc91ac86c1
commit e42adefce1
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -40,8 +40,11 @@ let
"armv5tel" = "arm";
"armv6l" = "arm";
"armv7l" = "arm";
"powerpc64le" = "ppc64le";
"mips" = "mips";
"mipsel" = "mipsle";
"riscv64" = "riscv64";
"s390x" = "s390x";
"powerpc64le" = "ppc64le";
}.${platform.parsed.cpu.name} or (throw "Unsupported system");
# We need a target compiler which is still runnable at build time,
+4
View File
@@ -40,6 +40,10 @@ let
"armv5tel" = "arm";
"armv6l" = "arm";
"armv7l" = "arm";
"mips" = "mips";
"mipsel" = "mipsle";
"riscv64" = "riscv64";
"s390x" = "s390x";
"powerpc64le" = "ppc64le";
}.${platform.parsed.cpu.name} or (throw "Unsupported system");