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.
CARGO_ENCODED_RUSTFLAGS
1 parent 1caea89 commit eecef27Copy full SHA for eecef27
xtask/src/build.rs
@@ -86,15 +86,11 @@ impl Build {
86
}
87
88
fn cargo_encoded_rustflags(&self) -> Result<String> {
89
- let outer_rustflags = match env::var("CARGO_ENCODED_RUSTFLAGS") {
90
- Ok(s) => Some(s),
91
- Err(VarError::NotPresent) => None,
92
- Err(err) => return Err(err.into()),
93
- };
94
- let mut rustflags = outer_rustflags
95
- .as_deref()
96
- .map(|s| vec![s])
97
- .unwrap_or_default();
+ assert_eq!(
+ env::var("CARGO_ENCODED_RUSTFLAGS"),
+ Err(VarError::NotPresent)
+ );
+ let mut rustflags = Vec::new();
98
99
if self.instrument_mcount {
100
rustflags.push("-Zinstrument-mcount");
0 commit comments