]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/compile.rs
Auto merge of #98017 - RalfJung:dereferenceable, r=nikic
[rust.git] / src / bootstrap / compile.rs
index aa7cda46bda69460406d134031c535bef05acc15..3d678b2290d1c7dd3f8983394e0dbb524bb195c7 100644 (file)
@@ -651,12 +651,6 @@ fn run(self, builder: &Builder<'_>) {
             panic!("Cannot use and generate PGO profiles at the same time");
         }
 
-        // With LLD, we can use ICF (identical code folding) to reduce the executable size
-        // of librustc_driver/rustc and to improve i-cache utilization.
-        if builder.config.use_lld {
-            cargo.rustflag("-Clink-args=-Wl,--icf=all");
-        }
-
         let is_collecting = if let Some(path) = &builder.config.rust_profile_generate {
             if compiler.stage == 1 {
                 cargo.rustflag(&format!("-Cprofile-generate={}", path));