Skip to content

Commit d4bd054

Browse files
committed
add a -Z incremental-info flag
1 parent 571010b commit d4bd054

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/librustc/session/config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
724724
"attempt to recover from parse errors (experimental)"),
725725
incremental: Option<String> = (None, parse_opt_string,
726726
"enable incremental compilation (experimental)"),
727+
incremental_info: bool = (false, parse_bool,
728+
"print high-level information about incremental reuse (or the lack thereof)"),
727729
dump_dep_graph: bool = (false, parse_bool,
728730
"dump the dependency graph to $RUST_DEP_GRAPH (default: /tmp/dep_graph.gv)"),
729731
query_dep_graph: bool = (false, parse_bool,

src/librustc_trans/back/write.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ pub fn run_passes(sess: &Session,
724724
work_items.push(work);
725725
}
726726

727-
if sess.time_passes() && sess.opts.incremental.is_some() {
727+
if sess.opts.debugging_opts.incremental_info {
728728
dump_incremental_data(&trans);
729729
}
730730

0 commit comments

Comments
 (0)