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 3c50674 commit 17e0aa2Copy full SHA for 17e0aa2
riscv-rt/build.rs
@@ -14,15 +14,10 @@ fn main() {
14
if target.starts_with("riscv") {
15
let mut target = Target::from_target_str(&target);
16
target.retain_extensions("imfdc");
17
+ let archive = format!("bin/{}.a", target.to_string());
18
- let target = target.to_string();
19
-
20
- fs::copy(
21
- format!("bin/{}.a", target),
22
- out_dir.join(format!("lib{}.a", name)),
23
- )
24
- .unwrap();
25
+ fs::copy(&archive, out_dir.join(format!("lib{}.a", name))).unwrap();
+ println!("cargo:rerun-if-changed={}", archive);
26
println!("cargo:rustc-link-lib=static={}", name);
27
}
28
0 commit comments