We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
armv7
/proc/cpuinfo
1 parent a36226b commit 3043a95Copy full SHA for 3043a95
rustup-init.sh
@@ -540,8 +540,9 @@ get_architecture() {
540
# and fall back to arm.
541
# See https://github.com/rust-lang/rustup.rs/issues/587.
542
if [ "$_ostype" = "unknown-linux-gnueabihf" ] && [ "$_cputype" = armv7 ]; then
543
- if ensure grep '^Features' /proc/cpuinfo | grep -E -q -v 'neon|simd'; then
544
- # At least one processor does not have NEON (which is asimd on armv8+).
+ if ! (ensure grep '^Features' /proc/cpuinfo | grep -E -q 'neon|simd') ; then
+ # Either `/proc/cpuinfo` is malformed or unavailable, or
545
+ # at least one processor does not have NEON (which is asimd on armv8+).
546
_cputype=arm
547
fi
548
0 commit comments