Changeset View
Changeset View
Standalone View
Standalone View
lang/rust/files/riscv64/patch-library_std_build.rs
- This file was added.
error[E0609]: no field `st_lspare` on type `&libc::stat` | |||||
--> library/std/src/os/./freebsd/fs.rs:152:36 | |||||
| | |||||
152 | self.as_inner().as_inner().st_lspare as u32 | |||||
| ^^^^^^^^^ help: a field with a similar name exists: `st_spare` | |||||
--- library/std/build.rs.orig 2021-11-07 10:37:22 UTC | |||||
+++ library/std/build.rs | |||||
@@ -4,7 +4,7 @@ fn main() { | |||||
println!("cargo:rerun-if-changed=build.rs"); | |||||
let target = env::var("TARGET").expect("TARGET was not set"); | |||||
if target.contains("freebsd") { | |||||
- if env::var("RUST_STD_FREEBSD_12_ABI").is_ok() { | |||||
+ if target.starts_with("riscv64") || env::var("RUST_STD_FREEBSD_12_ABI").is_ok() { | |||||
println!("cargo:rustc-cfg=freebsd12"); | |||||
} | |||||
} else if target.contains("linux") |