Skip to content

Commit 9621a6b

Browse files
Merge #37
37: Add `rerun-if-changed` when needed r=ryankurte a=david-sawatzke It's needed when using assembly so it's rebuilt when changed (at least for cc, wasn't able to test the .a way) Co-authored-by: David Sawatzke <[email protected]>
2 parents 647d36b + aa0dcc4 commit 9621a6b

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)