aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorUlrich Kunitz <uli.kunitz@gmail.com>2021-12-15 11:37:36 +0100
committerKeith Randall <khr@golang.org>2022-01-06 00:26:47 +0000
commitb5bfaf410ad4dc329400b92a7818ffec5cd9ebb0 (patch)
tree9c9530fa5e06b358c5c871783f858304e110dbe2 /src/cmd
parent2b39d86344608423138b648b98157470d3809ee7 (diff)
downloadgo-b5bfaf410ad4dc329400b92a7818ffec5cd9ebb0.tar.gz
go-b5bfaf410ad4dc329400b92a7818ffec5cd9ebb0.zip
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>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/go/alldocs.go2
-rw-r--r--src/cmd/go/internal/help/helpdoc.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index d90321414a..3bb9d146b2 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -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.
diff --git a/src/cmd/go/internal/help/helpdoc.go b/src/cmd/go/internal/help/helpdoc.go
index 035235fe1b..7dc066cfba 100644
--- a/src/cmd/go/internal/help/helpdoc.go
+++ b/src/cmd/go/internal/help/helpdoc.go
@@ -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.