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 008fd73 commit 88d9b7eCopy full SHA for 88d9b7e
cortex-m-rt/build.rs
@@ -19,12 +19,10 @@ fn main() {
19
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
20
21
if target.starts_with("thumbv") {
22
- fs::copy(
23
- format!("bin/{}.a", target),
24
- out_dir.join("libcortex-m-rt.a"),
25
- )
26
- .unwrap();
+ let lib_path = format!("bin/{}.a", target);
+ fs::copy(&lib_path, out_dir.join("libcortex-m-rt.a")).unwrap();
27
println!("cargo:rustc-link-lib=static=cortex-m-rt");
+ println!("cargo:rerun-if-changed={}", lib_path);
28
}
29
30
// Put the linker script somewhere the linker can find it
0 commit comments