Skip to content

Commit

Permalink
Fix --host_features with multiple transitions
Browse files Browse the repository at this point in the history
Fixes bazelbuild#13839 (comment)

Closes bazelbuild#17625.

PiperOrigin-RevId: 513249316
Change-Id: Ied4ab6958febaf320ae9e0f906c8071db0077e43
  • Loading branch information
keith authored and fweikert committed May 25, 2023
1 parent 7191dac commit 63bd11e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ public FragmentOptions getExec() {

// === Pass on C++ compiler features.
exec.incompatibleUseHostFeatures = incompatibleUseHostFeatures;
exec.hostFeatures = ImmutableList.copyOf(hostFeatures);
if (incompatibleUseHostFeatures) {
exec.defaultFeatures = ImmutableList.copyOf(hostFeatures);
} else {
Expand Down

0 comments on commit 63bd11e

Please sign in to comment.