Remove CARGO_FEATURES_* and CARGO_CFG_* (#782)

This commit is contained in:
Ashley Hauck 2021-10-28 13:09:32 +02:00 committed by GitHub
parent 1517a8bdd6
commit 3ae5c2b010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,6 +477,15 @@ fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> {
} }
} }
for (key, _) in env::vars_os() {
let remove = key.to_str().map_or(false, |s| {
s.starts_with("CARGO_FEATURES_") || s.starts_with("CARGO_CFG_")
});
if remove {
cargo.env_remove(key);
}
}
let cargo_encoded_rustflags = join_checking_for_separators(rustflags, "\x1f"); let cargo_encoded_rustflags = join_checking_for_separators(rustflags, "\x1f");
let build = cargo let build = cargo