We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10f42cb commit 32d07ccCopy full SHA for 32d07cc
src/bootstrap/lib.rs
@@ -783,10 +783,10 @@ impl Build {
783
fn cflags(&self, target: Interned<String>, which: GitRepo) -> Vec<String> {
784
// Filter out -O and /O (the optimization flags) that we picked up from
785
// cc-rs because the build scripts will determine that for themselves.
786
- let mut base: Vec<String> = self.cc[&target].args().iter()
+ let mut base = self.cc[&target].args().iter()
787
.map(|s| s.to_string_lossy().into_owned())
788
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
789
- .collect::<Vec<_>>();
+ .collect::<Vec<String>>();
790
791
// If we're compiling on macOS then we add a few unconditional flags
792
// indicating that we want libc++ (more filled out than libstdc++) and
0 commit comments