We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7c5b1 commit a01c5ddCopy full SHA for a01c5dd
src/cargo/core/compiler/build_context/target_info.rs
@@ -599,7 +599,10 @@ fn env_args(
599
// First try CARG_ENCODED_RUSTFLAGS from the environment.
600
// Prefer this over RUSTFLAGS since it's less prone to encoding errors.
601
if let Ok(a) = env::var(format!("CARGO_ENCODED_{}", name)) {
602
- let args = a.split('\x1f').map(str::to_string);
+ let args = a
603
+ .split('\x1f')
604
+ .filter(|s| !s.is_empty())
605
+ .map(str::to_string);
606
return Ok(args.collect());
607
}
608
0 commit comments