Skip to content

Commit

Permalink
analysis-stats: respect --disable-proc-macros flag
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbarsky committed Sep 20, 2024
1 parent 85e1214 commit f6138e2
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 f6138e2

Please sign in to comment.