• Elias Naur's avatar
    runtime: skip floating point hardware check on Android · f419b563
    Elias Naur authored
    CL 33652 removed the fake auxv for Android, and replaced it with
    a /proc/self/auxv fallback. When /proc/self/auxv is unreadable,
    however, hardware capabilities detection won't work and the runtime
    will mistakenly think that floating point hardware is unavailable.
    
    Fix this by always assuming floating point hardware on Android.
    
    Manually tested on a Nexus 5 running Android 6.0.1. I suspect the
    android/arm builder has a readable /proc/self/auxv and therefore
    does not trigger the failure mode.
    
    Change-Id: I95c3873803f9e17333c6cb8b9ff2016723104085
    Reviewed-on: https://go-review.googlesource.com/34641Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: 's avatarMinux Ma <minux@golang.org>
    Run-TryBot: Elias Naur <elias.naur@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    f419b563
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...