[6.1.0]Fix --host_features with multiple transitions (#17641) * Fix --host_features with multiple transitions Fixes https://github.com/bazelbuild/bazel/issues/13839#issuecomment-1448208320 Closes #17625. PiperOrigin-RevId: 513249316 Change-Id: Ied4ab6958febaf320ae9e0f906c8071db0077e43 * Update exec to host --------- Co-authored-by: Keith Smiley <keithbsmiley@gmail.com> Co-authored-by: keertk <110264242+keertk@users.noreply.github.com>
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/config/CoreOptions.java b/src/main/java/com/google/devtools/build/lib/analysis/config/CoreOptions.java index e683417..4e175ab 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/config/CoreOptions.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/config/CoreOptions.java
@@ -1009,6 +1009,7 @@ // === Pass on C++ compiler features. host.incompatibleUseHostFeatures = incompatibleUseHostFeatures; + host.hostFeatures = ImmutableList.copyOf(hostFeatures); if (incompatibleUseHostFeatures) { host.defaultFeatures = ImmutableList.copyOf(hostFeatures); } else {