Support build.rs cargo:rustc-cfg
This commit is contained in:
@@ -399,6 +399,13 @@ 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()
|
||||
.filter_map(|c| c.to_str())
|
||||
.map(Into::into),
|
||||
);
|
||||
opts
|
||||
};
|
||||
let mut env = Env::default();
|
||||
|
||||
Reference in New Issue
Block a user