mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Remove CARGO_FEATURES_* and CARGO_CFG_* (#782)
This commit is contained in:
parent
1517a8bdd6
commit
3ae5c2b010
@ -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 build = cargo
|
||||
|
Loading…
Reference in New Issue
Block a user