1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:40:04 -07:00

runtime: adjust GOARM floating point compatibility error message

As pointed out by Josh Bleecher Snyder in CL 99780.

The check is for GOARM > 6, so suggest to recompile with either GOARM=5
or GOARM=6.

Change-Id: I6a97e87bdc17aa3932f5c8cb598bba85c3cf4be9
Reviewed-on: https://go-review.googlesource.com/101936
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
Tobias Klauser 2018-03-21 19:42:24 +01:00 committed by Josh Bleecher Snyder
parent d54902ece9
commit 786899a72a
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ func checkgoarm() {
} }
if goarm > 6 && hwcap&_HWCAP_VFPv3 == 0 { if goarm > 6 && hwcap&_HWCAP_VFPv3 == 0 {
print("runtime: this CPU has no VFPv3 floating point hardware, so it cannot run\n") print("runtime: this CPU has no VFPv3 floating point hardware, so it cannot run\n")
print("this GOARM=", goarm, " binary. Recompile using GOARM=5.\n") print("this GOARM=", goarm, " binary. Recompile using GOARM=5 or GOARM=6.\n")
exit(1) exit(1)
} }

View File

@ -33,7 +33,7 @@ func checkgoarm() {
} }
if goarm > 6 && hwcap&_HWCAP_VFPv3 == 0 { if goarm > 6 && hwcap&_HWCAP_VFPv3 == 0 {
print("runtime: this CPU has no VFPv3 floating point hardware, so it cannot run\n") print("runtime: this CPU has no VFPv3 floating point hardware, so it cannot run\n")
print("this GOARM=", goarm, " binary. Recompile using GOARM=5.\n") print("this GOARM=", goarm, " binary. Recompile using GOARM=5 or GOARM=6.\n")
exit(1) exit(1)
} }
} }