1
0
mirror of https://github.com/golang/go synced 2024-11-26 16:57:14 -07:00

[dev.typeparams] internal/buildcfg: allow regabi GOEXPERIMENTs on ARM64

It is not working yet, but allow enabling the experiments so we
can develop.

Change-Id: I957eb05acb4d80b2858ff1f8c16bbfb24e0f6e56
Reviewed-on: https://go-review.googlesource.com/c/go/+/323933
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
This commit is contained in:
Cherry Mui 2021-05-27 16:56:02 -04:00
parent c3639918d1
commit 58ad36b359

View File

@ -98,8 +98,8 @@ func parseExperiments() goexperiment.Flags {
} }
} }
// regabi is only supported on amd64. // regabi is only supported on amd64 and arm64.
if GOARCH != "amd64" { if GOARCH != "amd64" && GOARCH != "arm64" {
flags.RegabiWrappers = false flags.RegabiWrappers = false
flags.RegabiG = false flags.RegabiG = false
flags.RegabiReflect = false flags.RegabiReflect = false