123456789101112131415161718192021222324252627282930 |
- use std::env;
- use which::which;
- use xtask::AYA_BUILD_INTEGRATION_BPF;
- fn main() {
- println!("cargo:rerun-if-env-changed={}", AYA_BUILD_INTEGRATION_BPF);
- let build_integration_bpf = env::var(AYA_BUILD_INTEGRATION_BPF)
- .as_deref()
- .map(str::parse)
- .map(Result::unwrap)
- .unwrap_or_default();
- if build_integration_bpf {
- let bpf_linker = which("bpf-linker").unwrap();
- println!("cargo:rerun-if-changed={}", bpf_linker.to_str().unwrap());
- }
- }
|