mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
doc: improve documentation for GOAMD64
The change clarifies in the release notes for go1.18 that the variable is for compilation and references the microarchitecture description in the Go Wiki, https://golang.org/wiki/MinimumRequirements#amd64, and references the same information in the output of go help environment. Fixes #50174 Change-Id: I6a7d5a06f48463a810c96cc9c76fe66113d5147c Reviewed-on: https://go-review.googlesource.com/c/go/+/372194 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
2b39d86344
commit
b5bfaf410a
|
@ -143,11 +143,12 @@ Do not send CLs removing the interior tags from such phrases.
|
|||
<h3 id="amd64">AMD64</h3>
|
||||
|
||||
<p><!-- CL 349595 -->
|
||||
Go 1.18 introduces the new <code>GOAMD64</code> environment variable which selects
|
||||
a version of the AMD64 architecture. Allowed values are <code>v1</code>,
|
||||
Go 1.18 introduces the new <code>GOAMD64</code> environment variable, which selects
|
||||
a mininum target version of the AMD64 architecture. Allowed values are <code>v1</code>,
|
||||
<code>v2</code>, <code>v3</code>, or <code>v4</code>. Each higher level requires,
|
||||
and takes advantage of, additional processor features. A detailed description of the
|
||||
versions is <a href="https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels">here</a>.
|
||||
and takes advantage of, additional processor features. A detailed
|
||||
description can be found
|
||||
<a href="https://golang.org/wiki/MinimumRequirements#amd64">here</a>.
|
||||
</p>
|
||||
<p>
|
||||
The <code>GOAMD64</code> environment variable defaults to <code>v1</code>.
|
||||
|
|
|
@ -2131,7 +2131,7 @@
|
|||
// GOAMD64
|
||||
// For GOARCH=amd64, the microarchitecture level for which to compile.
|
||||
// Valid values are v1 (default), v2, v3, v4.
|
||||
// See https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels.
|
||||
// See https://golang.org/wiki/MinimumRequirements#amd64
|
||||
// GOMIPS
|
||||
// For GOARCH=mips{,le}, whether to use floating point instructions.
|
||||
// Valid values are hardfloat (default), softfloat.
|
||||
|
|
|
@ -595,7 +595,7 @@ Architecture-specific environment variables:
|
|||
GOAMD64
|
||||
For GOARCH=amd64, the microarchitecture level for which to compile.
|
||||
Valid values are v1 (default), v2, v3, v4.
|
||||
See https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels.
|
||||
See https://golang.org/wiki/MinimumRequirements#amd64
|
||||
GOMIPS
|
||||
For GOARCH=mips{,le}, whether to use floating point instructions.
|
||||
Valid values are hardfloat (default), softfloat.
|
||||
|
|
Loading…
Reference in a new issue