add a -Z incremental-info
flag
This commit is contained in:
parent
571010bb52
commit
d4bd0544ca
2 changed files with 3 additions and 1 deletions
|
@ -724,6 +724,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
|
||||||
"attempt to recover from parse errors (experimental)"),
|
"attempt to recover from parse errors (experimental)"),
|
||||||
incremental: Option<String> = (None, parse_opt_string,
|
incremental: Option<String> = (None, parse_opt_string,
|
||||||
"enable incremental compilation (experimental)"),
|
"enable incremental compilation (experimental)"),
|
||||||
|
incremental_info: bool = (false, parse_bool,
|
||||||
|
"print high-level information about incremental reuse (or the lack thereof)"),
|
||||||
dump_dep_graph: bool = (false, parse_bool,
|
dump_dep_graph: bool = (false, parse_bool,
|
||||||
"dump the dependency graph to $RUST_DEP_GRAPH (default: /tmp/dep_graph.gv)"),
|
"dump the dependency graph to $RUST_DEP_GRAPH (default: /tmp/dep_graph.gv)"),
|
||||||
query_dep_graph: bool = (false, parse_bool,
|
query_dep_graph: bool = (false, parse_bool,
|
||||||
|
|
|
@ -724,7 +724,7 @@ pub fn run_passes(sess: &Session,
|
||||||
work_items.push(work);
|
work_items.push(work);
|
||||||
}
|
}
|
||||||
|
|
||||||
if sess.time_passes() && sess.opts.incremental.is_some() {
|
if sess.opts.debugging_opts.incremental_info {
|
||||||
dump_incremental_data(&trans);
|
dump_incremental_data(&trans);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue