mirror of https://github.com/aya-rs/aya
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.
10 lines
259 B
Rust
10 lines
259 B
Rust
4 years ago
|
use std::env;
|
||
|
|
||
|
fn main() {
|
||
|
if !env::var("CARGO_CFG_BPF_TARGET_ARCH").is_ok() {
|
||
|
let arch = env::var("HOST").unwrap();
|
||
|
let arch = arch.splitn(2, "-").next().unwrap();
|
||
|
println!("cargo:rustc-cfg=bpf_target_arch=\"{}\"", arch);
|
||
|
}
|
||
|
}
|