We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_32bit_userspace()
1 parent 1b400b4 commit 4582734Copy full SHA for 4582734
src/dist/dist.rs
@@ -237,11 +237,11 @@ impl Deref for TargetTriple {
237
}
238
239
240
+/// Check if /bin/sh is a 32-bit binary. If it doesn't exist, fall back to
241
+/// checking if _we_ are a 32-bit binary.
242
+/// rustup-init.sh also relies on checking /bin/sh for bitness.
243
#[cfg(not(windows))]
244
fn is_32bit_userspace() -> bool {
- // Check if /bin/sh is a 32-bit binary. If it doesn't exist, fall back to
- // checking if _we_ are a 32-bit binary.
- // rustup-init.sh also relies on checking /bin/sh for bitness.
245
use std::fs;
246
use std::io::{self, Read};
247
0 commit comments