Move trans, back, driver, and back into a new crate, rustc_trans. Reduces memory usage significantly and opens opportunities for more parallel compilation.

This commit is contained in:
Niko Matsakis
2014-11-15 20:30:33 -05:00
parent f637f1c5a2
commit dc6e414e6f
80 changed files with 640 additions and 532 deletions

View File

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