Skip to content

Commit

Permalink
--subsystem needs -Wl when using non-ld linkers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Apr 10, 2017
1 parent 2fed2a2 commit 251d9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_trans/back/linker.rs
Expand Up @@ -363,7 +363,7 @@ impl<'a> Linker for GccLinker<'a> {
}

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

fn finalize(&mut self) -> Command {
Expand Down

0 comments on commit 251d9be

Please sign in to comment.