diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index fe0c1dfb70b..7c8e3536df5 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1650,7 +1650,8 @@ pub fn cargo( } }; cargo.env(profile_var("DEBUG"), debuginfo_level.to_string()); - if !self.config.dry_run() && self.cc.borrow()[&target].args().iter().any(|arg| arg == "-gz") { + if !self.config.dry_run() && self.cc.borrow()[&target].args().iter().any(|arg| arg == "-gz") + { rustflags.arg("-Clink-arg=-gz"); } cargo.env(