Files
rust-stm32/examples/embassy-rgb-check/build.rs
2026-05-25 19:27:51 +02:00

13 lines
397 B
Rust

// main: tell Cargo to rerun when memory.x changes and add the shared link path.
// Input: none.
// Output: build script side effects only.
fn main() {
println!("cargo:rerun-if-changed=../../memory.x");
println!(
"cargo:rustc-link-search={}",
std::path::PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap())
.join("../..")
.display()
);
}