13 lines
397 B
Rust
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()
|
|
);
|
|
}
|