diff options
| author | Rafael Ávila de Espíndola <[email protected]> | 2011-04-18 10:02:34 -0400 |
|---|---|---|
| committer | Rafael Ávila de Espíndola <[email protected]> | 2011-04-18 10:02:52 -0400 |
| commit | f12998e5d7a4409d2bf748a671c345a79085213e (patch) | |
| tree | e8ae174f5e6bf1c8c7c87b18d807684d1b126358 /src/comp/driver | |
| parent | Make log the log level configurable per module (diff) | |
| download | rust-f12998e5d7a4409d2bf748a671c345a79085213e.tar.xz rust-f12998e5d7a4409d2bf748a671c345a79085213e.zip | |
Add a -c option.
Diffstat (limited to 'src/comp/driver')
| -rw-r--r-- | src/comp/driver/rustc.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |