1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-26 18:03:27 +04:00
rCore/bootloader/build.rs
2019-08-30 18:22:28 +08:00

12 lines
331 B
Rust

fn main() {
println!("cargo:rerun-if-env-changed=PAYLOAD");
println!("cargo:rerun-if-env-changed=DTB");
if let Ok(payload) = std::env::var("PAYLOAD") {
println!("cargo:rerun-if-changed={}", payload);
}
if let Ok(dtb) = std::env::var("DTB") {
println!("cargo:rerun-if-changed={}", dtb);
}
}