diff options
author | Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> | 2019-01-11 17:16:28 -0200 |
---|---|---|
committer | Lynn Boger <laboger@linux.vnet.ibm.com> | 2019-03-13 14:44:02 +0000 |
commit | 4ba69a9a17d643e2e18acebac7b176746564b897 (patch) | |
tree | 8086f5a435ba430173c75bc07b67bfe39b3aca8e /src/cmd/go/internal/cfg/cfg.go | |
parent | 82af9e67493b14ad1e10f28a384645e904a88d6f (diff) | |
download | go-4ba69a9a17d643e2e18acebac7b176746564b897.tar.gz go-4ba69a9a17d643e2e18acebac7b176746564b897.zip |
cmd/compile: add processor level selection support to ppc64{,le}
ppc64{,le} processor level selection allows the compiler to generate instructions
targeting newer processors and processor-specific optimizations without breaking
compatibility with our current baseline. This feature introduces a new environment
variable, GOPPC64.
GOPPC64 is a GOARCH=ppc64{,le} specific option, for a choice between different
processor levels (i.e. Instruction Set Architecture versions) for which the
compiler will target. The default is 'power8'.
Change-Id: Ic152e283ae1c47084ece4346fa002a3eabb3bb9e
Reviewed-on: https://go-review.googlesource.com/c/go/+/163758
Run-TryBot: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/go/internal/cfg/cfg.go')
-rw-r--r-- | src/cmd/go/internal/cfg/cfg.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/internal/cfg/cfg.go b/src/cmd/go/internal/cfg/cfg.go index 31c1fb84ef..80a154b066 100644 --- a/src/cmd/go/internal/cfg/cfg.go +++ b/src/cmd/go/internal/cfg/cfg.go @@ -104,6 +104,7 @@ var ( GO386 = objabi.GO386 GOMIPS = objabi.GOMIPS GOMIPS64 = objabi.GOMIPS64 + GOPPC64 = fmt.Sprintf("%s%d", "power", objabi.GOPPC64) ) // Update build context to use our computed GOROOT. |