Due to how close the freeze is, this will not be the default for the next quarterly release. There are lots of news, including support for Generics. Read the release notes for details.
16 lines
545 B
Go
16 lines
545 B
Go
$NetBSD: patch-src_cmd_dist_util.go,v 1.1 2022/03/15 20:13:45 bsiegert Exp $
|
|
|
|
--- src/cmd/dist/util.go.orig 2021-06-10 13:56:34.000000000 +0000
|
|
+++ src/cmd/dist/util.go
|
|
@@ -394,6 +394,11 @@ func xgetgoarm() string {
|
|
// windows/arm only works with ARMv7 executables.
|
|
return "7"
|
|
}
|
|
+ if goos == "netbsd" {
|
|
+ // NetBSD go/arm supports only earmv6hf or earmv7hf.
|
|
+ // Any armv5 (or before) devices cannot work.
|
|
+ return "6"
|
|
+ }
|
|
if gohostarch != "arm" || goos != gohostos {
|
|
// Conservative default for cross-compilation.
|
|
return "5"
|