Skip to content

Commit

Permalink
DNM Don't filter path
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Nov 1, 2023
1 parent 046a492 commit 89dfb13
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plrustc/plrustc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ fn clear_env() {
.map(|(name, _)| name)
.filter(|name| {
let name = name.to_string_lossy().to_lowercase();
!(name.starts_with("rust") || name.starts_with("plrust"))
!(name.starts_with("rust")
|| name.starts_with("plrust")
|| name.starts_with("cargo")
|| name == "path")
})
.collect::<Vec<_>>();
for name in all_var_names {
std::env::set_var(name, "");
std::env::remove_var(name);
}
}

Expand Down

0 comments on commit 89dfb13

Please sign in to comment.