Skip to content

Commit 01c7d7d

Browse files
keithcopybara-github
authored andcommitted
Fix --host_features with multiple transitions
Fixes bazelbuild#13839 (comment) Closes bazelbuild#17625. PiperOrigin-RevId: 513249316 Change-Id: Ied4ab6958febaf320ae9e0f906c8071db0077e43
1 parent c138210 commit 01c7d7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/google/devtools/build/lib/analysis/config/CoreOptions.java

+1
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ public FragmentOptions getExec() {
10261026

10271027
// === Pass on C++ compiler features.
10281028
exec.incompatibleUseHostFeatures = incompatibleUseHostFeatures;
1029+
exec.hostFeatures = ImmutableList.copyOf(hostFeatures);
10291030
if (incompatibleUseHostFeatures) {
10301031
exec.defaultFeatures = ImmutableList.copyOf(hostFeatures);
10311032
} else {

0 commit comments

Comments
 (0)