mirror of
https://github.com/golang/go
synced 2024-11-13 17:20:22 -07: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
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…
Reference in New Issue
Block a user