612c00bf4d
If you run make.bash on an arm system without GOARM set, we sniff the local system to find the maximum default GOARM that will actually work on that system. That's fine, and we can keep doing that. But the story for cross-compiling is weirder. If we build a windows/amd64 toolchain and then use it to cross-compile linux/arm binaries, we get GOARM=7 binaries. Do the same on a linux/amd64 system and you get GOARM=5 binaries. This clearly makes no sense, and worse it makes the builds non-reproducible in a subtle way. This CL simplifies the logic and improves reproducibility by defaulting to GOARM=7 any time we wouldn't sniff the local system. On go.dev/dl we serve a linux-armv6l distribution with a default GOARM=6. That is built by setting GOARM=6 during make.bash, so it is unaffected by this CL and will continue to be GOARM=6. For #24904. Change-Id: I4331709876d5948fd33ec6e4a7b18b3cef12f240 Reviewed-on: https://go-review.googlesource.com/c/go/+/470695 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> |
||
---|---|---|
.github | ||
api | ||
doc | ||
lib/time | ||
misc | ||
src | ||
test | ||
.gitattributes | ||
.gitignore | ||
codereview.cfg | ||
CONTRIBUTING.md | ||
go.env | ||
LICENSE | ||
PATENTS | ||
README.md | ||
SECURITY.md |
The Go Programming Language
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Download and Install
Binary Distributions
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
Install From Source
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Contributing
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.