-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state
Description
Following code, when compiled and run on arm-linux-gnueabihf
constantly prints 0x800001000
no matter of optimizations.
use std::io::fs::PathExtensions;
use std::io::{File};
fn main() {
let path = Path::new("foo.txt");
{
let mut file = File::create(&path);
file.write(b"foobar").ok().expect("err writing");
}
println!("{:#x}", path.stat().unwrap().size);
}
Same result obtained when using various rustc versions from 2014-11-21 to 2014-12-15. My guess would be stat struct differing between architectures?
Metadata
Metadata
Assignees
Labels
O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state