From 68f0696778953d80164a47e10c23f279cf932d91 Mon Sep 17 00:00:00 2001 From: Richard Howell Date: Tue, 16 May 2023 10:53:42 -0700 Subject: [PATCH] add extra apple_bundle outputs Summary: Add subtargets to apple_bundle for extra linker outputs that have been propagated up through the binary and bundle deps. Reviewed By: chatura-atapattu Differential Revision: D45622466 fbshipit-source-id: 71d08ad86b43908c0ba2e47308a607dc6001b321 --- prelude/apple/apple_bundle.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prelude/apple/apple_bundle.bzl b/prelude/apple/apple_bundle.bzl index a736f7c1..22ec90d9 100644 --- a/prelude/apple/apple_bundle.bzl +++ b/prelude/apple/apple_bundle.bzl @@ -7,6 +7,7 @@ load("@prelude//:paths.bzl", "paths") load("@prelude//apple:apple_toolchain_types.bzl", "AppleToolchainInfo", "AppleToolsInfo") +# @oss-disable: load("@prelude//apple/meta_only:linker_outputs.bzl", "subtargets_for_apple_bundle_extra_outputs") load("@prelude//apple/user:apple_selective_debugging.bzl", "AppleSelectiveDebuggingInfo") load("@prelude//cxx:debug.bzl", "maybe_external_debug_info", "project_external_debug_info") load( @@ -247,6 +248,8 @@ def apple_bundle_impl(ctx: "context") -> ["provider"]: # Collect extra bundle outputs extra_output_provider = _extra_output_provider(ctx) + # @oss-disable: extra_output_subtargets = subtargets_for_apple_bundle_extra_outputs(ctx, extra_output_provider) + # @oss-disable: sub_targets.update(extra_output_subtargets) return [ DefaultInfo(default_output = bundle, sub_targets = sub_targets),