commit | 1d73d72a45598e38c51b2618bb6fe4f27b390cb8 | [log] [tgz] |
---|---|---|
author | kshyanashree <109167932+kshyanashree@users.noreply.github.com> | Wed Mar 01 10:00:50 2023 -0800 |
committer | GitHub <noreply@github.com> | Wed Mar 01 18:00:50 2023 +0000 |
tree | 6d544d3d37e3c4b175909018dd102ad063a3a25a | |
parent | b396e2a6508cb60db28fd2b860527c74a6e645d6 [diff] |
[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 {