lib.systems: don't throw if go unsupported
Better to have a value that can actually be checked for, rather than throwing, so optional Go support can be disabled when unsupported.
This commit is contained in:
parent
59649e0e80
commit
f4c841ae5e
@ -556,7 +556,7 @@ let
|
||||
"x86_64" = "amd64";
|
||||
"wasm32" = "wasm";
|
||||
}
|
||||
.${final.parsed.cpu.name} or (throw "Unknown CPU variant ${final.parsed.cpu.name} by Go");
|
||||
.${final.parsed.cpu.name} or null;
|
||||
GOOS = if final.isWasi then "wasip1" else final.parsed.kernel.name;
|
||||
|
||||
# See https://go.dev/wiki/GoArm
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user