librustc: drop AST before running LLVM, frees 400mb on a librustc build
This commit is contained in:
parent
6264df5331
commit
b4a3fe25c6
4 changed files with 75 additions and 71 deletions
|
@ -426,7 +426,7 @@ pub fn compile_crate_from_input(input: &driver::input,
|
|||
debug!("Calling compile_upto, outputs = %?", outputs);
|
||||
let (crate, _) = driver::compile_upto(sess, copy cfg, input,
|
||||
driver::cu_parse, Some(outputs));
|
||||
let mut crate = crate;
|
||||
let mut crate = crate.unwrap();
|
||||
|
||||
debug!("About to inject link_meta info...");
|
||||
// Inject the inferred link_meta info if it's not already there
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue