|
21 | 21 | load("@build_bazel_apple_support//lib:lipo.bzl", "lipo") |
22 | 22 | load("@rules_cc//cc/common:cc_common.bzl", "cc_common") |
23 | 23 | load("@rules_cc//cc/common:cc_info.bzl", "CcInfo") |
| 24 | +load("@rules_cc//cc/common:objc_info.bzl", "ObjcInfo") |
24 | 25 | load( |
25 | 26 | "//apple/internal:cc_toolchain_info_support.bzl", |
26 | 27 | "cc_toolchain_info_support", |
|
41 | 42 | "new_appledebugoutputsinfo", |
42 | 43 | ) |
43 | 44 |
|
44 | | -ObjcInfo = apple_common.Objc |
45 | | - |
46 | 45 | def _archive_multi_arch_static_library( |
47 | 46 | *, |
48 | 47 | ctx, |
@@ -435,7 +434,7 @@ def _register_binary_linking_action( |
435 | 434 | This target must propagate the `AppleExecutableBinaryInfo` provider. |
436 | 435 | This simplifies the process of passing the bundle loader to all the arguments |
437 | 436 | that need it: the binary will automatically be added to the linker inputs, its |
438 | | - path will be added to linkopts via `-bundle_loader`, and the `apple_common.Objc` |
| 437 | + path will be added to linkopts via `-bundle_loader`, and the `ObjcInfo` |
439 | 438 | provider of its dependencies (obtained from the `AppleExecutableBinaryInfo` provider) |
440 | 439 | will be passed as an additional `avoid_dep` to ensure that those dependencies are |
441 | 440 | subtracted when linking the bundle's binary. |
@@ -474,7 +473,7 @@ def _register_binary_linking_action( |
474 | 473 | is a new universal (fat) binary obtained by invoking `lipo`. |
475 | 474 | * `cc_info`: The CcInfo provider containing information about the targets that were |
476 | 475 | linked. |
477 | | - * `objc`: The `apple_common.Objc` provider containing information about the targets |
| 476 | + * `objc`: The `ObjcInfo` provider containing information about the targets |
478 | 477 | that were linked. |
479 | 478 | * `outputs`: A `list` of `struct`s containing the single-architecture binaries and |
480 | 479 | debug outputs, with identifying information about the target platform, architecture, |
|
0 commit comments