Skip to content

Commit

Permalink
more compat
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Dec 6, 2024
1 parent b3b0d06 commit 2741655
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions apple/internal/providers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,16 @@ dependencies of the given target if any were generated.
init = _make_banned_init(provider_name = "AppleDsymBundleInfo"),
)

AppleExecutableBinaryInfo, new_appleexecutablebinaryinfo = provider(
_AppleExecutableBinaryInfo = provider(
doc = """
Contains the executable binary output that was built using
`link_multi_arch_binary` with the `executable` binary type.
""",
fields = {
# TODO: Remove when we drop 7.x
"objc": """\
apple_common.Objc provider used for legacy linking behavior.
""",
"binary": """\
The executable binary artifact output by `link_multi_arch_binary`.
""",
Expand All @@ -243,9 +247,14 @@ A `CcInfo` which contains information about the transitive dependencies linked
into the binary.
""",
},
init = _make_banned_init(provider_name = "AppleExecutableBinaryInfo"),
)

AppleExecutableBinaryInfo = getattr(apple_common, "AppleExecutableBinaryInfo", _AppleExecutableBinaryInfo)

# TODO: Use common init pattern when we drop 7.x
def new_appleexecutablebinaryinfo(**kwargs):
return AppleExecutableBinaryInfo(**kwargs)

AppleExtraOutputsInfo, new_appleextraoutputsinfo = provider(
doc = """
Provides information about extra outputs that should be produced from the build.
Expand Down

0 comments on commit 2741655

Please sign in to comment.