mirror of
https://github.com/golang/go.git
synced 2026-02-05 10:25:06 +03:00
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 <markdryan@rivosinc.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Mark Freeman <mark@golang.org> Reviewed-by: Meng Zhuo <mengzhuo1203@gmail.com>
This commit is contained in:
@@ -392,6 +392,8 @@ func GOGOARCH() (name, value string) {
|
||||
return "GOMIPS64", GOMIPS64
|
||||
case "ppc64", "ppc64le":
|
||||
return "GOPPC64", fmt.Sprintf("power%d", GOPPC64)
|
||||
case "riscv64":
|
||||
return "GORISCV64", fmt.Sprintf("rva%du64", GORISCV64)
|
||||
case "wasm":
|
||||
return "GOWASM", GOWASM.String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user