Skip to content

Commit b2868a9

Browse files
nglevinluispadron
authored andcommitted
Remove debug_outputs_provider from the outputs of all Apple rules.
Cherry-pick: 63c974d
1 parent d29c331 commit b2868a9

9 files changed

Lines changed: 0 additions & 70 deletions

File tree

apple/apple_binary.bzl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ Resolved Xcode is version {xcode_version}.
129129
ctx,
130130
dependency_attributes = ["bundle_loader", "deps"],
131131
),
132-
link_result.debug_outputs_provider,
133132
]
134133

135134
# If the binary was an executable, also propagate the appropriate provider

apple/internal/ios_rules.bzl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,6 @@ def _ios_application_impl(ctx):
547547
linking_contexts = linking_contexts,
548548
),
549549
),
550-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
551-
link_result.debug_outputs_provider,
552550
] + processor_result.providers
553551

554552
def _ios_app_clip_impl(ctx):
@@ -870,8 +868,6 @@ def _ios_app_clip_impl(ctx):
870868
linking_contexts = linking_contexts,
871869
),
872870
),
873-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
874-
link_result.debug_outputs_provider,
875871
] + processor_result.providers
876872

877873
def _ios_framework_impl(ctx):
@@ -1134,8 +1130,6 @@ def _ios_framework_impl(ctx):
11341130
processor_result.output_groups,
11351131
)
11361132
),
1137-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1138-
link_result.debug_outputs_provider,
11391133
] + processor_result.providers
11401134

11411135
def _ios_extension_impl(ctx):
@@ -1446,8 +1440,6 @@ def _ios_extension_impl(ctx):
14461440
)
14471441
),
14481442
merged_apple_framework_import_info,
1449-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1450-
link_result.debug_outputs_provider,
14511443
] + processor_result.providers
14521444

14531445
def _ios_dynamic_framework_impl(ctx):
@@ -2370,8 +2362,6 @@ def _ios_imessage_extension_impl(ctx):
23702362
)
23712363
),
23722364
merged_apple_framework_import_info,
2373-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
2374-
link_result.debug_outputs_provider,
23752365
] + processor_result.providers
23762366

23772367
def _ios_sticker_pack_extension_impl(ctx):

apple/internal/linking_support.bzl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ load(
4242
"AppleDynamicFrameworkInfo",
4343
"AppleExecutableBinaryInfo",
4444
"ApplePlatformInfo",
45-
"new_appledebugoutputsinfo",
4645
)
4746

4847
def _archive_multi_arch_static_library(
@@ -181,7 +180,6 @@ def _link_multi_arch_binary(
181180
* `output_groups`: A `dict` with the single key `_validation` and as valuea depset
182181
containing the validation artifacts from the compilation contexts of the CcInfo
183182
providers of the targets that were linked.
184-
* `debug_outputs_provider`: A deprecated AppleDebugOutputs provider
185183
"""
186184

187185
# TODO: Delete when we drop bazel 7.x
@@ -222,7 +220,6 @@ def _link_multi_arch_binary(
222220
)
223221

224222
linker_outputs = []
225-
legacy_debug_outputs = {}
226223

227224
# $(location...) is only used in one test, and tokenize only affects linkopts in one target
228225
additional_linker_inputs = getattr(ctx.attr, "additional_linker_inputs", [])
@@ -308,13 +305,6 @@ Please report this as a bug to the Apple BUILD Rules team.
308305
file_name = "{}.dwarf".format(main_binary_unstripped_basename),
309306
)
310307

311-
# TODO(b/391401130): Remove this once all users are migrated to the downstream
312-
# provider AppleDsymBundleInfo.
313-
legacy_debug_outputs.setdefault(
314-
platform_info.target_arch,
315-
{},
316-
)["dsym_binary"] = dsym_output
317-
318308
extensions["dsym_path"] = dsym_output.path # dsym symbol file
319309
additional_outputs.append(dsym_output)
320310

@@ -328,7 +318,6 @@ Please report this as a bug to the Apple BUILD Rules team.
328318
)
329319
extensions["linkmap_exec_path"] = linkmap.path # linkmap file
330320
additional_outputs.append(linkmap)
331-
legacy_debug_outputs.setdefault(platform_info.target_arch, {})["linkmap"] = linkmap
332321

333322
main_binary_basename = outputs.main_binary_basename(
334323
cpp_fragment = ctx.fragments.cpp,
@@ -374,7 +363,6 @@ Please report this as a bug to the Apple BUILD Rules team.
374363
return struct(
375364
output_groups = output_groups,
376365
outputs = linker_outputs,
377-
debug_outputs_provider = new_appledebugoutputsinfo(outputs_map = legacy_debug_outputs),
378366
)
379367

380368
def _debug_outputs_by_architecture(link_outputs):
@@ -518,7 +506,6 @@ def _register_binary_linking_action(
518506
and environment that each was built for.
519507
* `output_groups`: A `dict` containing output groups that should be returned in the
520508
`OutputGroupInfo` provider of the calling rule.
521-
* `debug_outputs_provider`: An AppleDebugOutputs provider
522509
"""
523510
linkopts = []
524511
link_inputs = []
@@ -611,7 +598,6 @@ def _register_binary_linking_action(
611598

612599
return struct(
613600
binary = fat_binary,
614-
debug_outputs_provider = linking_outputs.debug_outputs_provider,
615601
objc = getattr(linking_outputs, "objc", None),
616602
outputs = linking_outputs.outputs,
617603
output_groups = linking_outputs.output_groups,

apple/internal/macos_rules.bzl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,6 @@ def _macos_application_impl(ctx):
473473
linking_contexts = linking_contexts,
474474
),
475475
),
476-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
477-
link_result.debug_outputs_provider,
478476
] + processor_result.providers
479477

480478
def _macos_bundle_impl(ctx):
@@ -716,8 +714,6 @@ def _macos_bundle_impl(ctx):
716714
processor_result.output_groups,
717715
)
718716
),
719-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
720-
link_result.debug_outputs_provider,
721717
] + processor_result.providers
722718

723719
def _macos_extension_impl(ctx):
@@ -1250,8 +1246,6 @@ def _macos_quick_look_plugin_impl(ctx):
12501246
processor_result.output_groups,
12511247
)
12521248
),
1253-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1254-
link_result.debug_outputs_provider,
12551249
] + processor_result.providers
12561250

12571251
def _macos_kernel_extension_impl(ctx):
@@ -1505,8 +1499,6 @@ def _macos_kernel_extension_impl(ctx):
15051499
processor_result.output_groups,
15061500
)
15071501
),
1508-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1509-
link_result.debug_outputs_provider,
15101502
] + processor_result.providers
15111503

15121504
def _macos_spotlight_importer_impl(ctx):
@@ -1746,8 +1738,6 @@ def _macos_spotlight_importer_impl(ctx):
17461738
processor_result.output_groups,
17471739
)
17481740
),
1749-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1750-
link_result.debug_outputs_provider,
17511741
] + processor_result.providers
17521742

17531743
def _macos_xpc_service_impl(ctx):
@@ -1987,8 +1977,6 @@ def _macos_xpc_service_impl(ctx):
19871977
processor_result.output_groups,
19881978
)
19891979
),
1990-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1991-
link_result.debug_outputs_provider,
19921980
] + processor_result.providers
19931981

19941982
def _macos_command_line_application_impl(ctx):
@@ -2142,8 +2130,6 @@ def _macos_command_line_application_impl(ctx):
21422130
linking_contexts = linking_contexts,
21432131
),
21442132
),
2145-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
2146-
link_result.debug_outputs_provider,
21472133
] + processor_result.providers
21482134

21492135
def _macos_dylib_impl(ctx):
@@ -2277,8 +2263,6 @@ def _macos_dylib_impl(ctx):
22772263
{"dylib": depset(direct = [output_file])},
22782264
)
22792265
),
2280-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
2281-
link_result.debug_outputs_provider,
22822266
] + processor_result.providers
22832267

22842268
macos_application = rule_factory.create_apple_rule(

apple/internal/providers.bzl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -210,21 +210,6 @@ target if one was generated.
210210
init = _make_banned_init(provider_name = "AppleCodesigningDossierInfo"),
211211
)
212212

213-
AppleDebugOutputsInfo, new_appledebugoutputsinfo = provider(
214-
"""
215-
Holds debug outputs of an Apple binary rule.
216-
217-
This provider is DEPRECATED. Preferably use `AppleDsymBundleInfo` instead.
218-
219-
The only field is `output_map`, which is a dictionary of:
220-
`{ arch: { "dsym_binary": File, "linkmap": File }`
221-
222-
Where `arch` is any Apple architecture such as "arm64" or "armv7".
223-
""",
224-
fields = ["outputs_map"],
225-
init = _make_banned_init(provider_name = "AppleDebugOutputsInfo"),
226-
)
227-
228213
AppleDsymBundleInfo, new_appledsymbundleinfo = provider(
229214
doc = "Provides information for an Apple dSYM bundle.",
230215
fields = {

apple/internal/testing/apple_test_bundle_support.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,6 @@ def _apple_test_bundle_impl(*, ctx, product_type):
647647
processor_result.output_groups,
648648
)
649649
),
650-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
651-
link_result.debug_outputs_provider,
652650
])
653651

654652
return providers

apple/internal/tvos_rules.bzl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,6 @@ def _tvos_application_impl(ctx):
474474
linking_contexts = linking_contexts,
475475
),
476476
),
477-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
478-
link_result.debug_outputs_provider,
479477
] + processor_result.providers
480478

481479
def _tvos_dynamic_framework_impl(ctx):
@@ -1032,8 +1030,6 @@ def _tvos_framework_impl(ctx):
10321030
),
10331031
new_appleframeworkbundleinfo(),
10341032
new_tvosframeworkbundleinfo(),
1035-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1036-
link_result.debug_outputs_provider,
10371033
] + processor_result.providers
10381034

10391035
def _tvos_extension_impl(ctx):
@@ -1322,8 +1318,6 @@ def _tvos_extension_impl(ctx):
13221318
cc_info = link_result.cc_info,
13231319
),
13241320
new_tvosextensionbundleinfo(),
1325-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1326-
link_result.debug_outputs_provider,
13271321
] + processor_result.providers
13281322

13291323
def _tvos_static_framework_impl(ctx):

apple/internal/watchos_rules.bzl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,6 @@ def _watchos_framework_impl(ctx):
399399
processor_result.output_groups,
400400
)
401401
),
402-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
403-
link_result.debug_outputs_provider,
404402
] + processor_result.providers
405403

406404
def _watchos_dynamic_framework_impl(ctx):
@@ -1327,8 +1325,6 @@ def _watchos_extension_impl(ctx):
13271325
)
13281326
),
13291327
new_watchosextensionbundleinfo(),
1330-
# TODO(b/228856372): Remove when downstream users are migrated off this provider.
1331-
link_result.debug_outputs_provider,
13321328
] + processor_result.providers
13331329

13341330
def _watchos_static_framework_impl(ctx):

apple/providers.bzl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ load(
3636
_AppleBundleInfo = "AppleBundleInfo",
3737
_AppleBundleVersionInfo = "AppleBundleVersionInfo",
3838
_AppleCodesigningDossierInfo = "AppleCodesigningDossierInfo",
39-
_AppleDebugOutputsInfo = "AppleDebugOutputsInfo",
4039
_AppleDsymBundleInfo = "AppleDsymBundleInfo",
4140
_AppleDynamicFrameworkInfo = "AppleDynamicFrameworkInfo",
4241
_AppleExecutableBinaryInfo = "AppleExecutableBinaryInfo",
@@ -88,7 +87,6 @@ AppleBundleInfo = _AppleBundleInfo
8887
AppleBinaryInfo = _AppleBinaryInfo
8988
AppleBundleVersionInfo = _AppleBundleVersionInfo
9089
AppleCodesigningDossierInfo = _AppleCodesigningDossierInfo
91-
AppleDebugOutputsInfo = _AppleDebugOutputsInfo
9290
AppleDsymBundleInfo = _AppleDsymBundleInfo
9391
AppleDynamicFrameworkInfo = _AppleDynamicFrameworkInfo
9492
AppleExecutableBinaryInfo = _AppleExecutableBinaryInfo

0 commit comments

Comments
 (0)