mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
analysis-stats: respect --disable-proc-macros flag
This commit is contained in:
parent
00037c18ed
commit
ad52c46478
1 changed files with 5 additions and 1 deletions
|
@ -77,7 +77,11 @@ impl flags::AnalysisStats {
|
||||||
let metadata_time = db_load_sw.elapsed();
|
let metadata_time = db_load_sw.elapsed();
|
||||||
let load_cargo_config = LoadCargoConfig {
|
let load_cargo_config = LoadCargoConfig {
|
||||||
load_out_dirs_from_check: !self.disable_build_scripts,
|
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,
|
prefill_caches: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue