From 01c7d7d16fe9a31992eefdee10a4dd44a053a7f6 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Wed, 1 Mar 2023 08:54:36 -0800 Subject: [PATCH] Fix --host_features with multiple transitions Fixes https://github.com/bazelbuild/bazel/issues/13839#issuecomment-1448208320 Closes #17625. PiperOrigin-RevId: 513249316 Change-Id: Ied4ab6958febaf320ae9e0f906c8071db0077e43 --- .../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 4f7193ba2f1d0a..b13e004646ff53 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 @@ -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 {