This commit is contained in:
Pietro Albini 2023-06-13 09:15:57 +02:00
parent 4668123945
commit 86aa326ec0
No known key found for this signature in database
GPG Key ID: CD76B35F7734769E

View File

@ -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(