Skip to content

Commit 7ee4c2a

Browse files
committed
fix(dist/arm): don't assume armv7 if /proc/cpuinfo is unavailable
1 parent a36226b commit 7ee4c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustup-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ get_architecture() {
540540
# and fall back to arm.
541541
# See https://github.com/rust-lang/rustup.rs/issues/587.
542542
if [ "$_ostype" = "unknown-linux-gnueabihf" ] && [ "$_cputype" = armv7 ]; then
543-
if ensure grep '^Features' /proc/cpuinfo | grep -E -q -v 'neon|simd'; then
543+
if ! (ensure grep '^Features' /proc/cpuinfo | grep -E -q 'neon|simd') ; then
544544
# At least one processor does not have NEON (which is asimd on armv8+).
545545
_cputype=arm
546546
fi

0 commit comments

Comments
 (0)