Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Dec 12, 2024
1 parent 2bf3562 commit 01fec0c
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions test/linking_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,17 @@ def _subtract_linking_contexts(owner, linking_contexts, avoid_dep_linking_contex
owner = owner,
)

def link_multi_arch_binary(
*,
ctx,
stamp = -1):
def link_multi_arch_binary(*, ctx, stamp = -1):
"""Copied from rules_apple.
Args:
ctx: rule ctx
stamp: See upstream docs
Returns:
struct of linking info
"""

# TODO: Delete when we drop bazel 7.x
legacy_linking_function = getattr(apple_common, "link_multi_arch_binary", None)
if legacy_linking_function:
Expand Down Expand Up @@ -197,6 +204,15 @@ def link_multi_arch_binary(
)

def link_multi_arch_static_library(ctx):
"""Copied from rules_apple.
Args:
ctx: rule ctx
Returns:
struct of linking info
"""

# TODO: Delete when we drop bazel 7.x
legacy_linking_function = getattr(apple_common, "link_multi_arch_static_library", None)
if legacy_linking_function:
Expand Down

0 comments on commit 01fec0c

Please sign in to comment.