mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/dist: use GOARM=5 for openbsd/arm
OpenBSD/arm only currently supports softfloat, hence make the default GOARM=5. Change-Id: Ie3e8f457f001b3803d17ad9bc4ab957b2da18c6a Reviewed-on: https://go-review.googlesource.com/7614 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
550149fb04
commit
6ed6cb4550
1 changed files with 2 additions and 1 deletions
3
src/cmd/dist/util.go
vendored
3
src/cmd/dist/util.go
vendored
|
|
@ -505,8 +505,9 @@ func xgetgoarm() string {
|
|||
// Conservative default for cross-compilation.
|
||||
return "5"
|
||||
}
|
||||
if goos == "freebsd" {
|
||||
if goos == "freebsd" || goos == "openbsd" {
|
||||
// FreeBSD has broken VFP support.
|
||||
// OpenBSD currently only supports softfloat.
|
||||
return "5"
|
||||
}
|
||||
if goos != "linux" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue