]> Cypherpunks repositories - gostls13.git/commitdiff
internal/buildcfg: enable regabi for Android
authorIan Lance Taylor <iant@golang.org>
Fri, 30 Apr 2021 04:10:05 +0000 (21:10 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 30 Apr 2021 18:01:56 +0000 (18:01 +0000)
This will permit us to write ABIInternal assembler code for linux-amd64.

For #40724

Change-Id: I681866651554eda4229d6faa7f0c1ba42d07e57d
Reviewed-on: https://go-review.googlesource.com/c/go/+/315390
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/internal/buildcfg/exp.go

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