about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2021-05-03 17:04:59 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2021-05-06 21:22:25 +0300
commitfb9feb35eda218133e4fb8944e66d41b904fc9f8 (patch)
treef426c4a08c577b222d2632164b939a23508521a0 /compiler/rustc_codegen_ssa/src/back
parentd44f647ffcff0e1ff2c0f45b6a0ce9796d80f1ca (diff)
downloadrust-fb9feb35eda218133e4fb8944e66d41b904fc9f8.tar.gz
rust-fb9feb35eda218133e4fb8944e66d41b904fc9f8.zip
linker: Avoid library duplication with `/WHOLEARCHIVE`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/linker.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/linker.rs b/compiler/rustc_codegen_ssa/src/back/linker.rs
index 401d379b0d1..0e1723b06c5 100644
--- a/compiler/rustc_codegen_ssa/src/back/linker.rs
+++ b/compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -813,11 +813,9 @@ impl<'a> Linker for MsvcLinker<'a> {
     }
 
     fn link_whole_staticlib(&mut self, lib: Symbol, verbatim: bool, _search_path: &[PathBuf]) {
-        self.link_staticlib(lib, verbatim);
         self.cmd.arg(format!("/WHOLEARCHIVE:{}{}", lib, if verbatim { "" } else { ".lib" }));
     }
     fn link_whole_rlib(&mut self, path: &Path) {
-        self.link_rlib(path);
         let mut arg = OsString::from("/WHOLEARCHIVE:");
         arg.push(path);
         self.cmd.arg(arg);