Skip to content

Commit

Permalink
[6.1.0]Fix --host_features with multiple transitions (bazelbuild#17641)
Browse files Browse the repository at this point in the history
* Fix --host_features with multiple transitions

Fixes bazelbuild#13839 (comment)

Closes bazelbuild#17625.

PiperOrigin-RevId: 513249316
Change-Id: Ied4ab6958febaf320ae9e0f906c8071db0077e43

* Update exec to host

---------

Co-authored-by: Keith Smiley <[email protected]>
Co-authored-by: keertk <[email protected]>
  • Loading branch information
3 people authored Mar 1, 2023
1 parent b396e2a commit 1d73d72
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ public FragmentOptions getHost() {

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

0 comments on commit 1d73d72

Please sign in to comment.