From 1d73d72a45598e38c51b2618bb6fe4f27b390cb8 Mon Sep 17 00:00:00 2001 From: kshyanashree <109167932+kshyanashree@users.noreply.github.com> Date: Wed, 1 Mar 2023 10:00:50 -0800 Subject: [PATCH] [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 Co-authored-by: keertk <110264242+keertk@users.noreply.github.com> --- .../google/devtools/build/lib/analysis/config/CoreOptions.java | 1 + 1 file changed, 1 insertion(+) 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 e683417e7e6ff9..4e175abf8c6efb 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 @@ public FragmentOptions getHost() { // === Pass on C++ compiler features. host.incompatibleUseHostFeatures = incompatibleUseHostFeatures; + host.hostFeatures = ImmutableList.copyOf(hostFeatures); if (incompatibleUseHostFeatures) { host.defaultFeatures = ImmutableList.copyOf(hostFeatures); } else {