Separate the driver into its own crate that uses trans, typeck.

This commit is contained in:
Niko Matsakis
2014-11-27 09:57:47 -05:00
parent 93eb4333a0
commit 61edb0ccb7
11 changed files with 98 additions and 59 deletions

View File

@@ -21,6 +21,7 @@ extern crate getopts;
extern crate libc;
extern crate rustc;
extern crate rustc_trans;
extern crate rustc_driver;
extern crate serialize;
extern crate syntax;
extern crate "test" as testing;
@@ -163,7 +164,7 @@ pub fn main_args(args: &[String]) -> int {
usage(args[0].as_slice());
return 0;
} else if matches.opt_present("version") {
match rustc_trans::driver::version("rustdoc", &matches) {
match rustc_driver::version("rustdoc", &matches) {
Some(err) => {
println!("{}", err);
return 1