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

This commit is contained in:
David Barsky 2024-09-19 15:19:08 -04:00
parent 00037c18ed
commit ad52c46478

View file

@ -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,
};