We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91fb72a commit d1c275bCopy full SHA for d1c275b
src/librustc_codegen_ssa/back/linker.rs
@@ -704,12 +704,14 @@ impl<'a> Linker for MsvcLinker<'a> {
704
}
705
706
fn link_whole_staticlib(&mut self, lib: Symbol, _search_path: &[PathBuf]) {
707
- // not supported?
708
self.link_staticlib(lib);
+ self.cmd.arg(format!("/WHOLEARCHIVE:{}.lib", lib));
709
710
fn link_whole_rlib(&mut self, path: &Path) {
711
712
self.link_rlib(path);
+ let mut arg = OsString::from("/WHOLEARCHIVE:");
713
+ arg.push(path);
714
+ self.cmd.arg(arg);
715
716
fn optimize(&mut self) {
717
// Needs more investigation of `/OPT` arguments
0 commit comments