You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/ebpf/aya-ebpf/build.rs

16 lines
390 B
Rust

fn main() {
println!("cargo::rustc-check-cfg=cfg(generic_const_exprs)");
check_rust_version();
aya_build::emit_bpf_target_arch_cfg()
}
#[rustversion::nightly]
fn check_rust_version() {
// TODO(https://github.com/rust-lang/rust/issues/141492): restore this.
// println!("cargo:rustc-cfg=generic_const_exprs");
}
#[rustversion::not(nightly)]
fn check_rust_version() {}