bpf: re-reun build.rs if env changed

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/310/head
Dave Tucker 2 years ago
parent e3c8c659a1
commit c725e72796

@ -1,6 +1,7 @@
use std::env;
fn main() {
println!("cargo:rerun-if-env-changed=CARGO_CFG_BPF_TARGET_ARCH");
if let Ok(arch) = env::var("CARGO_CFG_BPF_TARGET_ARCH") {
println!("cargo:rustc-cfg=bpf_target_arch=\"{}\"", arch);
} else {

@ -1,6 +1,7 @@
use std::env;
fn main() {
println!("cargo:rerun-if-env-changed=CARGO_CFG_BPF_TARGET_ARCH");
if let Ok(arch) = env::var("CARGO_CFG_BPF_TARGET_ARCH") {
println!("cargo:rustc-cfg=bpf_target_arch=\"{}\"", arch);
} else {

@ -1,6 +1,7 @@
use std::env;
fn main() {
println!("cargo:rerun-if-env-changed=CARGO_CFG_BPF_TARGET_ARCH");
if let Ok(arch) = env::var("CARGO_CFG_BPF_TARGET_ARCH") {
println!("cargo:rustc-cfg=bpf_target_arch=\"{}\"", arch);
} else {

Loading…
Cancel
Save