Skip to content

Commit ada30b8

Browse files
HeliC829mengzhuo
authored andcommitted
internal/buildcfg: add ability to get GORISCV64 variable in GOGOARCH
For #61476 Change-Id: I29f4c1c3c3303e70ec2d7f380112eb2d00754018 Reviewed-on: https://go-review.googlesource.com/c/go/+/665655 Reviewed-by: Mark Ryan <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Mark Freeman <[email protected]> Reviewed-by: Meng Zhuo <[email protected]>
1 parent 6f6c6c5 commit ada30b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/internal/buildcfg/cfg.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ func GOGOARCH() (name, value string) {
392392
return "GOMIPS64", GOMIPS64
393393
case "ppc64", "ppc64le":
394394
return "GOPPC64", fmt.Sprintf("power%d", GOPPC64)
395+
case "riscv64":
396+
return "GORISCV64", fmt.Sprintf("rva%du64", GORISCV64)
395397
case "wasm":
396398
return "GOWASM", GOWASM.String()
397399
}

0 commit comments

Comments
 (0)