Skip to content

Commit

Permalink
Fix build.rs
Browse files Browse the repository at this point in the history
Wasn't rebuilding when linker scripts changed.
  • Loading branch information
thejpster committed Aug 31, 2024
1 parent a364ee3 commit 8de3ed4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neotron-os/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ fn main() {
if let Ok("none") = std::env::var("CARGO_CFG_TARGET_OS").as_deref() {
copy_linker_script("neotron-flash-1002.ld");
println!("cargo::rustc-link-arg-bin=flash1002=-Tneotron-flash-1002.ld");
println!("cargo::rerun-if-changed=neotron-flash-1002.ld");
copy_linker_script("neotron-flash-0802.ld");
println!("cargo::rustc-link-arg-bin=flash0802=-Tneotron-flash-0802.ld");
println!("cargo::rerun-if-changed=neotron-flash-0802.ld");
copy_linker_script("neotron-flash-0002.ld");
println!("cargo::rustc-link-arg-bin=flash0002=-Tneotron-flash-0002.ld");
println!("cargo::rerun-if-changed=neotron-flash-0002.ld");
}

if let Ok(cmd_output) = std::process::Command::new("git")
Expand Down

0 comments on commit 8de3ed4

Please sign in to comment.