diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-05-14 21:53:05 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2023-05-14 21:53:05 +0200 |
| commit | 882a9684f9bc94afa7c97fdb5724511cd04e16fc (patch) | |
| tree | 8241d5c4b56d212ad5501f804adf3b4d0c576502 /compiler/rustc_interface/src | |
| parent | eda41addfcf8112e69531f56ca8c478509be0135 (diff) | |
| download | rust-882a9684f9bc94afa7c97fdb5724511cd04e16fc.tar.gz rust-882a9684f9bc94afa7c97fdb5724511cd04e16fc.zip | |
Specialize query execution for incremental and non-incremental
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index d3af01474b8..6fd95003072 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -691,6 +691,8 @@ pub fn create_global_ctxt<'tcx>( callback(sess, &mut local_providers, &mut extern_providers); } + let incremental = dep_graph.is_fully_enabled(); + sess.time("setup_global_ctxt", || { gcx_cell.get_or_init(move || { TyCtxt::create_global_ctxt( @@ -705,6 +707,7 @@ pub fn create_global_ctxt<'tcx>( local_providers, extern_providers, query_result_on_disk_cache, + incremental, ), ) }) |
