Skip to content

Commit

Permalink
Auto merge of #16997 - Veykril:cfg-if-patch, r=Veykril
Browse files Browse the repository at this point in the history
fix: Fix `patch_cfg_if` not applying with stitched sysroot

The condition was inverted accidentally..
  • Loading branch information
bors committed Apr 2, 2024
2 parents 23dd54b + 600747a commit 54faa03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/project-model/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 54faa03

Please sign in to comment.