Skip to content

Commit

Permalink
Return execution configuration without applying any transition
Browse files Browse the repository at this point in the history
  • Loading branch information
mai93 committed Dec 14, 2020
1 parent a13f590 commit aa809e5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ public ImmutableSet<Class<? extends FragmentOptions>> requiresOptionFragments()

@Override
public BuildOptions patch(BuildOptionsView options, EventHandler eventHandler) {
if (executionPlatform == null) {
// No execution platform is known, so don't change anything.
if (executionPlatform == null || options.get(CoreOptions.class).isExec) {
// If no execution platform is known or the input already comes from execution configuration,
// don't change anything and return the existing value.
return options.underlying();
}
return cache.applyTransition(
Expand Down

0 comments on commit aa809e5

Please sign in to comment.