Skip to content

Commit

Permalink
Disable exec_transition_for_inputs in rule-based toolchains
Browse files Browse the repository at this point in the history
BEGIN_PUBLIC

Doing a transition to the exec platform in rule-based toolchains was causing unusual behaviors when attempting to restrict compatibility. This changes most of the toolchain rules to be evaluated from the target platform configuration, only transitioning to the exec configuration when explicitly requested.

END_PUBLIC

PiperOrigin-RevId: 634411095
Change-Id: I8716b9a517d9f3be306cdf96dafb98a868a3f83b
  • Loading branch information
Googler authored and Copybara-Service committed May 16, 2024
1 parent 71d9e52 commit 1acf521
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cc/toolchains/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,7 @@ def cc_toolchain(
static_runtime_lib = static_runtime_lib,
supports_header_parsing = supports_header_parsing,
supports_param_files = supports_param_files,
# This is required for Bazel versions <= 7.x.x. It is ignored in later versions.
exec_transition_for_inputs = False,
**(all_kwargs | legacy_file_groups)
)

0 comments on commit 1acf521

Please sign in to comment.