]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: reactivate vfp detection on linux/arm
authorDave Cheney <dave@cheney.net>
Fri, 6 Feb 2015 00:44:09 +0000 (11:44 +1100)
committerDave Cheney <dave@cheney.net>
Tue, 10 Feb 2015 00:17:06 +0000 (00:17 +0000)
commite6fbce3596c1200825db78d338b98cbc80dc5665
tree2e22231a6d09ed7afef506daf4fe922b8f668650
parent06611434479daf7d27bd2cd69d10be7d4cb5cd61
cmd/dist: reactivate vfp detection on linux/arm

Fixes #9732
Fixes #9819

Rather than detecting vfp support via catching SIGILL signals,
parse the contents of /proc/cpuinfo.

As the GOARM values for NaCl and freebsd are hard coded, this parsing
logic only needs to support linux/arm.

This change also fixes the nacl/arm build which is broken because the
first stage of nacltest.bash is executed with GOARM=5, embedding that
into 5g.

The second stage of nacltest.bash correctly detects GOARM=7, but this is
ignored as we pass --no-clean at that point, and thus do not replace
the compiler.

Lastyly, include a fix to error message in nacltest.bash

Change-Id: I13f306ff07a99b44b493fade72ac00d0d5097e1c
Reviewed-on: https://go-review.googlesource.com/3981
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/dist/util.go
src/cmd/dist/vfp_arm.s [deleted file]
src/cmd/dist/vfp_default.s [deleted file]
src/nacltest.bash