We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7e297 commit 63a9486Copy full SHA for 63a9486
riscv-rt/build.rs
@@ -4,7 +4,6 @@ extern crate riscv_target;
4
use riscv_target::Target;
5
use std::env;
6
use std::fs;
7
-use std::io::Write;
8
use std::path::PathBuf;
9
10
fn main() {
@@ -29,10 +28,7 @@ fn main() {
29
28
}
30
31
// Put the linker script somewhere the linker can find it
32
- fs::File::create(out_dir.join("link.x"))
33
- .unwrap()
34
- .write_all(include_bytes!("link.x"))
35
- .unwrap();
+ fs::write(out_dir.join("link.x"), include_bytes!("link.x")).unwrap();
36
println!("cargo:rustc-link-search={}", out_dir.display());
37
38
println!("cargo:rerun-if-changed=build.rs");
0 commit comments