From 01fec0c6f7439a0362aa766a253b805a069a18ad Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Wed, 11 Dec 2024 17:17:35 -0800 Subject: [PATCH] docstrings --- test/linking_support.bzl | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/test/linking_support.bzl b/test/linking_support.bzl index 7c16d91..d64028a 100644 --- a/test/linking_support.bzl +++ b/test/linking_support.bzl @@ -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: @@ -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: