Review feedback.
This commit is contained in:
@@ -16,9 +16,8 @@ fn main() {
|
||||
// will work.
|
||||
let os = env::var("CARGO_CFG_TARGET_OS").unwrap();
|
||||
let is_memfd = env::var("CARGO_FEATURE_MEMFD").is_ok();
|
||||
let is_pooling = env::var("CARGO_FEATURE_POOLING_ALLOCATOR").is_ok();
|
||||
let is_uffd = env::var("CARGO_FEATURE_UFFD").is_ok();
|
||||
if &os == "linux" && is_memfd && is_pooling && !is_uffd {
|
||||
if &os == "linux" && is_memfd && !is_uffd {
|
||||
println!("cargo:rustc-cfg=memfd");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user