Auto merge of #16997 - Veykril:cfg-if-patch, r=Veykril

fix: Fix `patch_cfg_if` not applying with stitched sysroot

The condition was inverted accidentally..
This commit is contained in:
bors 2024-04-02 13:06:35 +00:00
commit 54faa03121

View file

@ -775,7 +775,7 @@ impl ProjectWorkspace {
),
};
if matches!(sysroot.as_ref().map(|it| it.mode()), Ok(SysrootMode::Workspace(_)))
if matches!(sysroot.as_ref().map(|it| it.mode()), Ok(SysrootMode::Stitched(_)))
&& crate_graph.patch_cfg_if()
{
tracing::debug!("Patched std to depend on cfg-if")