Skip to content

Commit aa0dcc4

Browse files
Add rerun-if-changed when needed
1 parent 2b523c5 commit aa0dcc4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ci/asm/rt/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ fn main() -> Result<(), Box<Error>> {
1515
// assemble the `asm.s` file
1616
Build::new().file("asm.s").compile("asm"); // <- NEW!
1717

18+
// rebuild if `asm.s` changed
19+
println!("cargo:rerun-if-changed=asm.s"); // <- NEW!
20+
1821
Ok(())
1922
}

ci/asm/rt2/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ fn main() -> Result<(), Box<Error>> {
2020
fs::copy("librt.a", out_dir.join("librt.a"))?; // <- NEW!
2121
println!("cargo:rustc-link-lib=static=rt"); // <- NEW!
2222

23+
// rebuild if `librt.a` changed
24+
println!("cargo:rerun-if-changed=librt.a"); // <- NEW!
25+
2326
Ok(())
2427
}

0 commit comments

Comments
 (0)