]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: use GOARM=5 for openbsd/arm
authorJoel Sing <jsing@google.com>
Sun, 15 Mar 2015 06:38:05 +0000 (17:38 +1100)
committerJoel Sing <jsing@google.com>
Sun, 15 Mar 2015 09:11:56 +0000 (09:11 +0000)
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>
src/cmd/dist/util.go

index d7e0078c2f635dc4f9ba2cb6b49c3500249b0b27..0e8aa115f0f35b99ed95ca6878cc6f5a468668fe 100644 (file)
@@ -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" {