Skip to content

Commit

Permalink
Always include features
Browse files Browse the repository at this point in the history
  • Loading branch information
DelevoXDG committed Oct 15, 2024
1 parent 18a7829 commit d0d36ba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scarb/src/ops/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,12 @@ fn cairo_compilation_unit_for_target(
components.push(CompilationUnitComponent::try_new(
member.clone(),
vec![target],
no_test_cfg_set.and_then(|cfg_set| {
get_cfg_with_features(cfg_set, &member.manifest.features, enabled_features).unwrap()
}),
get_cfg_with_features(
no_test_cfg_set.unwrap_or(cfg_set.clone()),
&member.manifest.features,
enabled_features,
)
.unwrap(),
)?);

// Set test package as main package for this compilation unit.
Expand Down

0 comments on commit d0d36ba

Please sign in to comment.