We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0d5872 commit ac5fd90Copy full SHA for ac5fd90
compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -281,8 +281,11 @@ impl<'a> Linker for GccLinker<'a> {
281
}
282
283
LinkOutputKind::DynamicPicExe => {
284
- // `-pie` works for both gcc wrapper and ld.
285
- self.cmd.arg("-pie");
+ // noop on windows w/ gcc & ld, error w/ lld
+ if !self.sess.target.is_like_windows {
286
+ // `-pie` works for both gcc wrapper and ld.
287
+ self.cmd.arg("-pie");
288
+ }
289
290
LinkOutputKind::StaticNoPicExe => {
291
// `-static` works for both gcc wrapper and ld.
0 commit comments