mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
6f6c6c5782
commit
ada30b8248
1 changed files with 2 additions and 0 deletions
|
|
@ -392,6 +392,8 @@ func GOGOARCH() (name, value string) {
|
||||||
return "GOMIPS64", GOMIPS64
|
return "GOMIPS64", GOMIPS64
|
||||||
case "ppc64", "ppc64le":
|
case "ppc64", "ppc64le":
|
||||||
return "GOPPC64", fmt.Sprintf("power%d", GOPPC64)
|
return "GOPPC64", fmt.Sprintf("power%d", GOPPC64)
|
||||||
|
case "riscv64":
|
||||||
|
return "GORISCV64", fmt.Sprintf("rva%du64", GORISCV64)
|
||||||
case "wasm":
|
case "wasm":
|
||||||
return "GOWASM", GOWASM.String()
|
return "GOWASM", GOWASM.String()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue