Skip to content

Pass toolchain_type to LTO backend action creation for correct exec platform#709

Open
anguslees wants to merge 1 commit intobazelbuild:mainfrom
anguslees:fix-lto-backend-exec-platform
Open

Pass toolchain_type to LTO backend action creation for correct exec platform#709
anguslees wants to merge 1 commit intobazelbuild:mainfrom
anguslees:fix-lto-backend-exec-platform

Conversation

@anguslees
Copy link
Copy Markdown

Pass the CC toolchain type to cc_internal.create_lto_backend_action and cc_internal.create_lto_backend_action_template so that these actions resolve their execution platform through the CC toolchain's auto exec group, matching the behavior of CppCompile and CppLink actions.

Without this, LTO backend compile actions use the DEFAULT exec group (which ignores toolchain exec_compatible_with constraints when auto_exec_groups is enabled), causing them to be scheduled on the wrong execution platform in mixed-architecture RBE setups.

Requires the corresponding Bazel change that adds the toolchain_type parameter to these cc_internal APIs.

…latform

Pass the CC toolchain type to cc_internal.create_lto_backend_action and
cc_internal.create_lto_backend_action_template so that these actions
resolve their execution platform through the CC toolchain's auto exec
group, matching the behavior of CppCompile and CppLink actions.

Without this, LTO backend compile actions use the DEFAULT exec group
(which ignores toolchain exec_compatible_with constraints when
auto_exec_groups is enabled), causing them to be scheduled on the wrong
execution platform in mixed-architecture RBE setups.

Requires the corresponding Bazel change that adds the toolchain_type
parameter to these cc_internal APIs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant