Skip to content
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

Fix more upstream objc provider changes #2368

Merged
merged 3 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 1 addition & 3 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ x_defaults:
test_flags:
- --test_tag_filters=-skipci
common_last_green: &common_last_green
# TODO: switch back to last_green once
# https://github.com/bazelbuild/stardoc/issues/195 is fixed.
bazel: e82c1d156fd1fad5f08ee1b014ef02bea86ec632
bazel: last_green
build_flags:
- --config=visionos
test_flags:
Expand Down
11 changes: 6 additions & 5 deletions apple/internal/linking_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ def _sectcreate_objc_provider(label, segname, sectname, file):
# set.
linkopts = ["-Wl,-sectcreate,%s,%s,%s" % (segname, sectname, file.path)]
return [
apple_common.new_objc_provider(
linkopt = depset(linkopts, order = "topological"),
link_inputs = depset([file]),
),
CcInfo(
linking_context = cc_common.create_linking_context(
linker_inputs = depset([
Expand All @@ -114,7 +110,12 @@ def _sectcreate_objc_provider(label, segname, sectname, file):
]),
),
),
]
] + ([
apple_common.new_objc_provider(
linkopt = depset(linkopts, order = "topological"),
link_inputs = depset([file]),
),
] if _OBJC_PROVIDER_LINKING else [])

def _register_binary_linking_action(
ctx,
Expand Down