]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist,internal/platform,runtime: add cgo support for openbsd/riscv64 port
authorJoel Sing <joel@sing.id.au>
Sat, 17 Sep 2022 16:37:36 +0000 (02:37 +1000)
committerJoel Sing <joel@sing.id.au>
Thu, 25 Jan 2024 09:19:16 +0000 (09:19 +0000)
Updates #55999

Change-Id: Ie9a030130713f3eaf789b91d9033be3335eb9d75
Reviewed-on: https://go-review.googlesource.com/c/go/+/518630
Reviewed-by: Carlos Amedee <carlos@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/dist/build.go
src/internal/platform/zosarch.go

index c6254b0e7c847c61a7110479730d7383c97b36d4..51bb63c5194d75b6244fdc992d8f3887929097ab 100644 (file)
@@ -1744,7 +1744,7 @@ var cgoEnabled = map[string]bool{
        "openbsd/arm64":   true,
        "openbsd/mips64":  true,
        "openbsd/ppc64":   false,
-       "openbsd/riscv64": false,
+       "openbsd/riscv64": true,
        "plan9/386":       false,
        "plan9/amd64":     false,
        "plan9/arm":       false,
index af78b4b220d66d53c799b9cfaca49716f54c7db7..1df348518cc9b9f2a2453a57ff074821af124615 100644 (file)
@@ -103,7 +103,7 @@ var distInfo = map[OSArch]osArchInfo{
        {"openbsd", "arm64"}:   {CgoSupported: true},
        {"openbsd", "mips64"}:  {CgoSupported: true, Broken: true},
        {"openbsd", "ppc64"}:   {},
-       {"openbsd", "riscv64"}: {},
+       {"openbsd", "riscv64"}: {CgoSupported: true},
        {"plan9", "386"}:       {},
        {"plan9", "amd64"}:     {},
        {"plan9", "arm"}:       {},