Skip to content

Commit 251d9be

Browse files
author
Jorge Aparicio
committed
--subsystem needs -Wl when using non-ld linkers
1 parent 2fed2a2 commit 251d9be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/back/linker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl<'a> Linker for GccLinker<'a> {
363363
}
364364

365365
fn subsystem(&mut self, subsystem: &str) {
366-
self.cmd.arg(&format!("--subsystem,{}", subsystem));
366+
self.linker_arg(&format!("--subsystem,{}", subsystem));
367367
}
368368

369369
fn finalize(&mut self) -> Command {

0 commit comments

Comments
 (0)