Skip to content

Commit 1bc9a1a

Browse files
authored
Merge pull request #697 from aya-rs/log-env-too
integration-test: Remove RUSTC from cargo-in-cargo
2 parents f334cbd + d62ae98 commit 1bc9a1a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration-test/build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ fn main() {
147147
]);
148148

149149
// Workaround to make sure that the rust-toolchain.toml is respected.
150-
cmd.env_remove("RUSTUP_TOOLCHAIN")
151-
.current_dir(integration_ebpf_dir);
150+
for key in ["RUSTUP_TOOLCHAIN", "RUSTC"] {
151+
cmd.env_remove(key);
152+
}
153+
cmd.current_dir(integration_ebpf_dir);
152154

153155
// Workaround for https://github.com/rust-lang/cargo/issues/6412 where cargo flocks itself.
154156
let ebpf_target_dir = out_dir.join("integration-ebpf");

0 commit comments

Comments
 (0)