From 0362f5ba14e15c4fcc607f9f462c3f02fb11ff52 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sun, 18 Sep 2022 02:34:09 +1000 Subject: [PATCH] cmd/dist,internal/platform: add openbsd/riscv64 port Updates #55999 Change-Id: I3c07f776919e36e4c1fdc5346f7622e5901a2902 Reviewed-on: https://go-review.googlesource.com/c/go/+/518624 TryBot-Result: Gopher Robot Reviewed-by: Keith Randall Reviewed-by: Aaron Bieber Reviewed-by: Keith Randall Reviewed-by: Than McIntosh Run-TryBot: Joel Sing --- src/cmd/dist/build.go | 8 +++++--- src/internal/platform/zosarch.go | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go index 8d023b7e0afc1..0c6a382b82fbc 100644 --- a/src/cmd/dist/build.go +++ b/src/cmd/dist/build.go @@ -1729,6 +1729,7 @@ var cgoEnabled = map[string]bool{ "openbsd/arm64": true, "openbsd/mips64": true, "openbsd/ppc64": false, + "openbsd/riscv64": false, "plan9/386": false, "plan9/amd64": false, "plan9/arm": false, @@ -1744,9 +1745,10 @@ var cgoEnabled = map[string]bool{ // get filtered out of cgoEnabled for 'dist list'. // See go.dev/issue/56679. var broken = map[string]bool{ - "linux/sparc64": true, // An incomplete port. See CL 132155. - "openbsd/ppc64": true, // An incomplete port: go.dev/issue/56001. - "openbsd/mips64": true, // Broken: go.dev/issue/58110. + "linux/sparc64": true, // An incomplete port. See CL 132155. + "openbsd/mips64": true, // Broken: go.dev/issue/58110. + "openbsd/ppc64": true, // An incomplete port: go.dev/issue/56001. + "openbsd/riscv64": true, // An incomplete port: go.dev/issue/55999. } // List of platforms which are first class ports. See go.dev/issue/38874. diff --git a/src/internal/platform/zosarch.go b/src/internal/platform/zosarch.go index 7f5a2903320df..4be5c58227a13 100644 --- a/src/internal/platform/zosarch.go +++ b/src/internal/platform/zosarch.go @@ -49,6 +49,7 @@ var List = []OSArch{ {"openbsd", "arm64"}, {"openbsd", "mips64"}, {"openbsd", "ppc64"}, + {"openbsd", "riscv64"}, {"plan9", "386"}, {"plan9", "amd64"}, {"plan9", "arm"}, @@ -102,6 +103,7 @@ var distInfo = map[OSArch]osArchInfo{ {"openbsd", "arm64"}: {CgoSupported: true}, {"openbsd", "mips64"}: {CgoSupported: true, Broken: true}, {"openbsd", "ppc64"}: {Broken: true}, + {"openbsd", "riscv64"}: {Broken: true}, {"plan9", "386"}: {}, {"plan9", "amd64"}: {}, {"plan9", "arm"}: {},