rust-raspberrypi-OS-tutorials/20_timer_callbacks/kernel_symbols/build.rs
2022-10-26 22:02:12 +02:00

15 lines
350 B
Rust

use std::{env, path::Path};
fn main() {
if let Ok(path) = env::var("KERNEL_SYMBOLS_DEMANGLED_RS") {
if Path::new(&path).exists() {
println!("cargo:rustc-cfg=feature=\"generated_symbols_available\"")
}
}
println!(
"cargo:rerun-if-changed={}",
Path::new("kernel_symbols.ld").display()
);
}