From f12998e5d7a4409d2bf748a671c345a79085213e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Mon, 18 Apr 2011 10:02:34 -0400 Subject: Add a -c option. --- src/comp/driver/rustc.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/comp/driver') diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index afa2a9bb..db069279 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -168,6 +168,8 @@ impure fn main(vec[str] args) { ot = trans.output_type_none; } else if (_str.eq(arg, "-S")) { ot = trans.output_type_assembly; + } else if (_str.eq(arg, "-c")) { + ot = trans.output_type_object; } else if (_str.eq(arg, "-o")) { if (i+1u < len) { output_file = some(args.(i+1u)); -- cgit v1.2.3