diff --git a/src/librustc_trans/back/linker.rs b/src/librustc_trans/back/linker.rs index 48e469e28ee..61c57f00de7 100644 --- a/src/librustc_trans/back/linker.rs +++ b/src/librustc_trans/back/linker.rs @@ -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 {