Skip to content

Commit

Permalink
Fix patch_cfg_if not applying with stitched sysroot
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Apr 2, 2024
1 parent 23dd54b commit 600747a
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 600747a

Please sign in to comment.