We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70622db + d1c275b commit 7cc4518Copy full SHA for 7cc4518
src/librustc_codegen_ssa/back/linker.rs
@@ -721,12 +721,14 @@ impl<'a> Linker for MsvcLinker<'a> {
721
}
722
723
fn link_whole_staticlib(&mut self, lib: Symbol, _search_path: &[PathBuf]) {
724
- // not supported?
725
self.link_staticlib(lib);
+ self.cmd.arg(format!("/WHOLEARCHIVE:{}.lib", lib));
726
727
fn link_whole_rlib(&mut self, path: &Path) {
728
729
self.link_rlib(path);
+ let mut arg = OsString::from("/WHOLEARCHIVE:");
730
+ arg.push(path);
731
+ self.cmd.arg(arg);
732
733
fn optimize(&mut self) {
734
// Needs more investigation of `/OPT` arguments
0 commit comments