Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions oom-watcher/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ fn main() {

// Build the eBPF program
let mut cmd = Command::new("cargo");
// Cargo sets these for build scripts to point at the outer build's own
// rustc/sysroot; inherited as-is they make this nested cargo's rustc
// load a mismatched librustc_driver ("undefined symbol" at `rustc -vV`).
cmd.env_remove("LD_LIBRARY_PATH")
.env_remove("RUSTC")
.env_remove("RUSTUP_TOOLCHAIN");
cmd.arg("+nightly")
.arg("build")
.arg("--release")
Expand Down