Skip to content

Commit dfa62c7

Browse files
committed
doc: document GOAMD64 environment variable
Update #47694 Change-Id: I9c90bd251616cd4d10434bd3b6e6c30c5c819e24 Reviewed-on: https://go-review.googlesource.com/c/go/+/363661 Trust: Keith Randall <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent c239790 commit dfa62c7

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

doc/go1.18.html

+13-4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@ <h3 id="freebsd">FreeBSD</h3>
4040
FreeBSD 13.0+ will require a kernel with the COMPAT_FREEBSD12 option set (this is the default).
4141
</p>
4242

43+
<h3 id="amd64">AMD64</h3>
44+
45+
<p><!-- CL 349595 -->
46+
Go 1.18 introduces the new <code>GOAMD64</code> environment variable which selects
47+
a version of the AMD64 architecture. Allowed values are <code>v1</code>,
48+
<code>v2</code>, <code>v3</code>, or <code>v4</code>. Each higher level requires,
49+
and takes advantage of, additional processor features. A detailed description of the
50+
versions is <a href="https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels">here</a>.
51+
</p>
52+
<p>
53+
The <code>GOAMD64</code> environment variable defaults to <code>v1</code>.
54+
</p>
55+
4356
<h3 id="ppc64">PPC64</h3>
4457

4558
<p><!-- CL 353969 -->
@@ -123,10 +136,6 @@ <h3 id="go-command">Go command</h3>
123136
third-party tools that need to collect package source code.)
124137
</p>
125138

126-
<p><!-- CL 349595 -->
127-
TODO: <a href="https://golang.org/cl/349595">https://golang.org/cl/349595</a>: cmd/go: add GOAMD64 environment variable
128-
</p>
129-
130139
<h3 id="gofmt"><code>gofmt</code></h3>
131140

132141
<p><!-- https://golang.org/issue/43566 -->

0 commit comments

Comments
 (0)