mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Support cfg overrides in all workspace kind
This commit is contained in:
parent
ee10f9f5cd
commit
8989dcffd6
4 changed files with 69 additions and 22 deletions
|
@ -81,6 +81,7 @@ impl Tester {
|
|||
rustc_cfg: vec![],
|
||||
toolchain: None,
|
||||
target_layout: data_layout.map(Arc::from).map_err(|it| Arc::from(it.to_string())),
|
||||
cfg_overrides: Default::default(),
|
||||
};
|
||||
let load_cargo_config = LoadCargoConfig {
|
||||
load_out_dirs_from_check: false,
|
||||
|
|
|
@ -234,6 +234,7 @@ impl GlobalState {
|
|||
it.clone(),
|
||||
cargo_config.target.as_deref(),
|
||||
&cargo_config.extra_env,
|
||||
&cargo_config.cfg_overrides,
|
||||
))
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue