about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-08-17 20:20:27 -0700
committerGitHub <noreply@github.com>2020-08-17 20:20:27 -0700
commitd70ae9bbb79d19c353f00520c6fbaddf00bfde43 (patch)
tree7ec7b43c441b848635b5819add2b7f57ecdda3fa
parentd6ff46c3be06a003785059b1cc166c0969ac2ddd (diff)
parent1627ba19643c18fe9a80e65c8df8bbd2f3ed8432 (diff)
downloadrust-d70ae9bbb79d19c353f00520c6fbaddf00bfde43.tar.gz
rust-d70ae9bbb79d19c353f00520c6fbaddf00bfde43.zip
Rollup merge of #75603 - mati865:mingw-out-implib-compat, r=oli-obk
Use more compatible out-implib style

When calling `rust-lld` directly it accepts only `--out-implib {}` or `--out-implib={}` not `--out-implib,{}`.
-rw-r--r--src/librustc_codegen_ssa/back/linker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_ssa/back/linker.rs b/src/librustc_codegen_ssa/back/linker.rs
index 5100ef8ad4f..0ddf8bd316f 100644
--- a/src/librustc_codegen_ssa/back/linker.rs
+++ b/src/librustc_codegen_ssa/back/linker.rs
@@ -266,7 +266,7 @@ impl<'a> GccLinker<'a> {
                 if let Some(implib_name) = implib_name {
                     let implib = out_filename.parent().map(|dir| dir.join(&implib_name));
                     if let Some(implib) = implib {
-                        self.linker_arg(&format!("--out-implib,{}", (*implib).to_str().unwrap()));
+                        self.linker_arg(&format!("--out-implib={}", (*implib).to_str().unwrap()));
                     }
                 }
             }