Skip to content

Commit

Permalink
Auto merge of #18157 - davidbarsky:davidbarsky/respect-disabling-proc…
Browse files Browse the repository at this point in the history
…-macros-in-analysis-stats, r=Veykril

analysis-stats: respect `--disable-proc-macros` flag

I noticed that this flag wasn't being respected by `analysis-stats` when profiling proc macro expansion, so here's a small fix.
  • Loading branch information
bors committed Sep 24, 2024
2 parents 6ec41ab + f6138e2 commit 80c0682
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ impl flags::AnalysisStats {
let metadata_time = db_load_sw.elapsed();
let load_cargo_config = LoadCargoConfig {
load_out_dirs_from_check: !self.disable_build_scripts,
with_proc_macro_server: ProcMacroServerChoice::Sysroot,
with_proc_macro_server: if self.disable_proc_macros {
ProcMacroServerChoice::None
} else {
ProcMacroServerChoice::Sysroot
},
prefill_caches: false,
};

Expand Down

0 comments on commit 80c0682

Please sign in to comment.