|
|
@ -59,6 +59,7 @@ fn main() {
|
|
|
|
|
|
|
|
|
|
|
|
let mut cmd = Command::new("cargo");
|
|
|
|
let mut cmd = Command::new("cargo");
|
|
|
|
cmd.args([
|
|
|
|
cmd.args([
|
|
|
|
|
|
|
|
"+nightly",
|
|
|
|
"build",
|
|
|
|
"build",
|
|
|
|
"-Z",
|
|
|
|
"-Z",
|
|
|
|
"build-std=core",
|
|
|
|
"build-std=core",
|
|
|
@ -71,8 +72,8 @@ fn main() {
|
|
|
|
|
|
|
|
|
|
|
|
cmd.env("CARGO_CFG_BPF_TARGET_ARCH", arch);
|
|
|
|
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 correct toolchain is used.
|
|
|
|
for key in ["RUSTUP_TOOLCHAIN", "RUSTC", "RUSTC_WORKSPACE_WRAPPER"] {
|
|
|
|
for key in ["RUSTC", "RUSTC_WORKSPACE_WRAPPER"] {
|
|
|
|
cmd.env_remove(key);
|
|
|
|
cmd.env_remove(key);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cmd.current_dir(ebpf_dir);
|
|
|
|
cmd.current_dir(ebpf_dir);
|
|
|
|