Fix patch_cfg_if not applying with stitched sysroot

This commit is contained in:
Lukas Wirth 2024-04-02 15:04:40 +02:00
parent 23dd54b010
commit 600747a1b4

View File

@ -775,7 +775,7 @@ pub fn to_crate_graph(
),
};
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")