Skip to content

Commit 686c830

Browse files
ianlancetaylorgopherbot
authored andcommitted
doc/go1.21: document GOARM default when cross-compiling
This was changed in CL 470695 but was not mentioned in the release notes. For golang/go#24904 For golang/go#58884 Change-Id: Ib952ce43c65696b3a6091a378587cab1299f30e3 Reviewed-on: https://go-review.googlesource.com/c/website/+/639455 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 1b0aaf9 commit 686c830

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

_content/doc/go1.21.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,9 +1118,21 @@ As [announced](go1.20#windows) in the Go 1.20 release notes,
11181118
Go 1.21 requires at least Windows 10 or Windows Server 2016;
11191119
support for previous versions has been discontinued.
11201120

1121+
### ARM
1122+
11211123
<!-- CL 470695 -->
11221124

1123-
<!-- cmd/dist: default to GOARM=7 on all non-arm systems -->
1125+
When building the Go distribution with `GOARCH=arm` when not running
1126+
on an ARM system (that is, when building a cross-compiler to ARM), the
1127+
default value for the `GOARM` environment variable is now always set
1128+
to `7`.
1129+
Previously the default depended on characteristics of the build
1130+
system.
1131+
1132+
When not building a cross-compiler, the default value is determined
1133+
by examining the build system.
1134+
That was true before and remains true in Go 1.21.
1135+
What has changed is the behavior when building a cross-compiler.
11241136

11251137
### WebAssembly {#wasm}
11261138

_content/doc/go1.22.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ the Go toolchain already generates PIE by default.
868868
<!-- go.dev/issue/64207 -->
869869
Go 1.22 is the last release that will run on macOS 10.15 Catalina. Go 1.23 will require macOS 11 Big Sur or later.
870870

871-
### Arm {#arm}
871+
### ARM {#arm}
872872

873873
<!-- CL 514907 -->
874874
The `GOARM` environment variable now allows you to select whether to use software or hardware floating point.

0 commit comments

Comments
 (0)