Skip to content

refactor: Use the linkstamps from linker_inputs instead of from cc_linking_context for to support upcoming CcInfo changes #3075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions python/private/py_executable.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,11 @@ def _create_shared_native_deps_dso(
feature_configuration,
requested_features,
cc_toolchain):
linkstamps = py_internal.linking_context_linkstamps(cc_info.linking_context)
linkstamps = [
py_internal.linkstamp_file(linkstamp)
for linker_input in cc_info.linking_context.linker_inputs.to_list()
for linkstamp in linker_input.linkstamps
]

partially_disabled_thin_lto = (
cc_common.is_enabled(
Expand All @@ -1598,10 +1602,7 @@ def _create_shared_native_deps_dso(
for input in cc_info.linking_context.linker_inputs.to_list()
for flag in input.user_link_flags
],
linkstamps = [
py_internal.linkstamp_file(linkstamp)
for linkstamp in linkstamps.to_list()
],
linkstamps = linkstamps,
build_info_artifacts = _get_build_info(ctx, cc_toolchain) if linkstamps else [],
features = requested_features,
is_test_target_partially_disabled_thin_lto = is_test and partially_disabled_thin_lto,
Expand Down