diff options
author | Cherry Mui <cherryyz@google.com> | 2021-08-02 12:18:19 -0400 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2021-08-11 16:59:43 +0000 |
commit | eeb7899137cda1c2cd60dab65ff41f627436db5b (patch) | |
tree | 62b709aaec0f5390b00b6c55899c4f4051a84869 /src/internal/abi/abi_amd64.go | |
parent | 0888a8cd2dc3ad66e30ccb30eae8fbed065ea0f7 (diff) | |
download | go-eeb7899137cda1c2cd60dab65ff41f627436db5b.tar.gz go-eeb7899137cda1c2cd60dab65ff41f627436db5b.zip |
[dev.typeparams] internal/buildcfg: always enable regabi on AMD64
In Go 1.17 we added register ABI on AMD64 on Linux/macOS/Windows
as a GOEXPERIMENT, on by default. In Go 1.18, we commit to always
enabling register ABI on AMD64.
Now "go build" for AMD64 always have goexperiment.regabi* tags
set. However, at bootstrapping cmd/dist does not set the tags
when building go_bootstrap. For this to work, unfortunately, we
need to hard-code AMD64 to use register ABI in runtime code.
Change-Id: I0b31e678e186b9cdeeb8502cd9e38ed0d7e72d4f
Reviewed-on: https://go-review.googlesource.com/c/go/+/341151
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/internal/abi/abi_amd64.go')
-rw-r--r-- | src/internal/abi/abi_amd64.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/internal/abi/abi_amd64.go b/src/internal/abi/abi_amd64.go index aff71f6a58..d3c5678223 100644 --- a/src/internal/abi/abi_amd64.go +++ b/src/internal/abi/abi_amd64.go @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build goexperiment.regabireflect -// +build goexperiment.regabireflect - package abi const ( |