]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] internal/buildcfg: turn on register ABI on all AMD64 platforms
authorCherry Mui <cherryyz@google.com>
Fri, 14 May 2021 19:04:51 +0000 (15:04 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 20 May 2021 19:29:30 +0000 (19:29 +0000)
Register ABI is already enabled by default on AMD64 on Linux
(including Android), macOS, and Windows. This CL enables it on the
rest, specifically, on FreeBSD, OpenBSD, NetBSD, DragonflyBSD,
Solaris (including Illumos), iOS (simulator), and Plan 9.

Change-Id: I80fa20c8bbc8d67b16a19f71b65422e890210ab5
Reviewed-on: https://go-review.googlesource.com/c/go/+/321332
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/internal/buildcfg/exp.go

index 2435a79dcec8c614f11ee5026425cfe6127399c0..417d87cf4af7f1421246837c46c76dc7ef1940a5 100644 (file)
@@ -20,7 +20,7 @@ import (
 // was built with.)
 var Experiment goexperiment.Flags = parseExperiments()
 
-var regabiSupported = GOARCH == "amd64" && (GOOS == "android" || GOOS == "linux" || GOOS == "darwin" || GOOS == "windows")
+var regabiSupported = GOARCH == "amd64"
 
 // experimentBaseline specifies the experiment flags that are enabled by
 // default in the current toolchain. This is, in effect, the "control"