Skip to content

Commit 25f476d

Browse files
authored
Merge pull request #1587 from tasleson/powerpc32_userland
Update rustup-init.sh for 32bit powerpc userland
2 parents 61f57bb + e9516b4 commit 25f476d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

rustup-init.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,20 @@ get_architecture() {
299299

300300
esac
301301

302-
# Detect 64-bit linux with 32-bit userland
302+
# Detect 64-bit linux with 32-bit userland for x86
303303
if [ $_ostype = unknown-linux-gnu -a $_cputype = x86_64 ]; then
304304
if [ "$(get_bitness)" = "32" ]; then
305305
local _cputype=i686
306306
fi
307307
fi
308308

309+
# Detect 64-bit linux with 32-bit userland for powerpc
310+
if [ $_ostype = unknown-linux-gnu -a $_cputype = powerpc64 ]; then
311+
if [ "$(get_bitness)" = "32" ]; then
312+
local _cputype=powerpc
313+
fi
314+
fi
315+
309316
# Detect armv7 but without the CPU features Rust needs in that build,
310317
# and fall back to arm.
311318
# See https://github.com/rust-lang/rustup.rs/issues/587.

0 commit comments

Comments
 (0)