mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-11 07:10:59 +00:00
15 lines
350 B
Rust
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()
|
|
);
|
|
}
|