integration-test: build eBPF for the proper arch

Prior to this change we neglected to build integration-ebpf for the
correct target architecture, resulting in test failures on arm64.
pull/796/head
Tamir Duberstein 1 year ago
parent ad460879ef
commit 15de14383d
No known key found for this signature in database

@ -107,7 +107,7 @@ fn main() {
} else if arch == "aarch64" { } else if arch == "aarch64" {
target_arch.push("arm64"); target_arch.push("arm64");
} else { } else {
target_arch.push(arch); target_arch.push(&arch);
}; };
// NB: libbpf's documentation suggests that vmlinux.h be generated by running `bpftool btf // NB: libbpf's documentation suggests that vmlinux.h be generated by running `bpftool btf
@ -198,6 +198,8 @@ fn main() {
&target, &target,
]); ]);
cmd.env("CARGO_CFG_BPF_TARGET_ARCH", arch);
// Workaround to make sure that the rust-toolchain.toml is respected. // Workaround to make sure that the rust-toolchain.toml is respected.
for key in ["RUSTUP_TOOLCHAIN", "RUSTC"] { for key in ["RUSTUP_TOOLCHAIN", "RUSTC"] {
cmd.env_remove(key); cmd.env_remove(key);

Loading…
Cancel
Save