mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-11 15:23:05 +00:00
Add -Ztime-passes line for dep-graph loading.
This commit is contained in:
parent
f62f774035
commit
fe21c4c522
@ -889,10 +889,11 @@ pub fn phase_2_configure_and_expand<F>(sess: &Session,
|
|||||||
let dep_graph = match future_dep_graph {
|
let dep_graph = match future_dep_graph {
|
||||||
None => DepGraph::new_disabled(),
|
None => DepGraph::new_disabled(),
|
||||||
Some(future) => {
|
Some(future) => {
|
||||||
let prev_graph = future
|
let prev_graph = time(time_passes, "blocked while dep-graph loading finishes", || {
|
||||||
.open()
|
future.open()
|
||||||
.expect("Could not join with background dep_graph thread")
|
.expect("Could not join with background dep_graph thread")
|
||||||
.open(sess);
|
.open(sess)
|
||||||
|
});
|
||||||
DepGraph::new(prev_graph)
|
DepGraph::new(prev_graph)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user