mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Merge #4296
4296: Support cargo:rustc-cfg in build.rs r=matklad a=robojumper Fixes #4238. Co-authored-by: robojumper <robojumper@gmail.com>
This commit is contained in:
commit
1b136aae0b
4 changed files with 130 additions and 5 deletions
|
@ -399,6 +399,7 @@ impl ProjectWorkspace {
|
|||
let cfg_options = {
|
||||
let mut opts = default_cfg_options.clone();
|
||||
opts.insert_features(cargo[pkg].features.iter().map(Into::into));
|
||||
opts.insert_cfgs(cargo[pkg].cfgs.iter().map(Into::into));
|
||||
opts
|
||||
};
|
||||
let mut env = Env::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue