@@ -242,6 +242,7 @@ def _macos_application_impl(ctx):
242242 cc_toolchains = cc_toolchain_forwarder ,
243243 avoid_deps = ctx .attr .frameworks ,
244244 build_settings = apple_xplat_toolchain_info .build_settings ,
245+ bundle_name = bundle_name ,
245246 entitlements = entitlements .linking ,
246247 exported_symbols_lists = ctx .files .exported_symbols_lists ,
247248 platform_prerequisites = platform_prerequisites ,
@@ -552,6 +553,7 @@ def _macos_bundle_impl(ctx):
552553 cc_toolchains = cc_toolchain_forwarder ,
553554 build_settings = apple_xplat_toolchain_info .build_settings ,
554555 bundle_loader = ctx .attr .bundle_loader ,
556+ bundle_name = bundle_name ,
555557 entitlements = entitlements .linking ,
556558 exported_symbols_lists = ctx .files .exported_symbols_lists ,
557559 extra_linkopts = ["-bundle" ],
@@ -803,6 +805,7 @@ def _macos_extension_impl(ctx):
803805 cc_toolchains = cc_toolchain_forwarder ,
804806 avoid_deps = ctx .attr .frameworks ,
805807 build_settings = apple_xplat_toolchain_info .build_settings ,
808+ bundle_name = bundle_name ,
806809 entitlements = entitlements .linking ,
807810 exported_symbols_lists = ctx .files .exported_symbols_lists ,
808811 extra_linkopts = extra_linkopts ,
@@ -1074,6 +1077,7 @@ def _macos_quick_look_plugin_impl(ctx):
10741077 link_result = linking_support .register_binary_linking_action (
10751078 ctx ,
10761079 build_settings = apple_xplat_toolchain_info .build_settings ,
1080+ bundle_name = bundle_name ,
10771081 cc_toolchains = cc_toolchain_forwarder ,
10781082 entitlements = entitlements .linking ,
10791083 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -1326,6 +1330,7 @@ def _macos_kernel_extension_impl(ctx):
13261330 link_result = linking_support .register_binary_linking_action (
13271331 ctx ,
13281332 build_settings = apple_xplat_toolchain_info .build_settings ,
1333+ bundle_name = bundle_name ,
13291334 cc_toolchains = cc_toolchain_forwarder ,
13301335 entitlements = entitlements .linking ,
13311336 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -1567,6 +1572,7 @@ def _macos_spotlight_importer_impl(ctx):
15671572 link_result = linking_support .register_binary_linking_action (
15681573 ctx ,
15691574 build_settings = apple_xplat_toolchain_info .build_settings ,
1575+ bundle_name = bundle_name ,
15701576 cc_toolchains = cc_toolchain_forwarder ,
15711577 entitlements = entitlements .linking ,
15721578 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -1806,6 +1812,7 @@ def _macos_xpc_service_impl(ctx):
18061812 link_result = linking_support .register_binary_linking_action (
18071813 ctx ,
18081814 build_settings = apple_xplat_toolchain_info .build_settings ,
1815+ bundle_name = bundle_name ,
18091816 cc_toolchains = cc_toolchain_forwarder ,
18101817 entitlements = entitlements .linking ,
18111818 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -2020,6 +2027,7 @@ def _macos_command_line_application_impl(ctx):
20202027 link_result = linking_support .register_binary_linking_action (
20212028 ctx ,
20222029 build_settings = apple_xplat_toolchain_info .build_settings ,
2030+ bundle_name = bundle_name ,
20232031 cc_toolchains = cc_toolchain_forwarder ,
20242032 # Command-line applications do not have entitlements.
20252033 entitlements = None ,
@@ -2173,6 +2181,7 @@ def _macos_dylib_impl(ctx):
21732181 link_result = linking_support .register_binary_linking_action (
21742182 ctx ,
21752183 build_settings = apple_xplat_toolchain_info .build_settings ,
2184+ bundle_name = bundle_name ,
21762185 cc_toolchains = cc_toolchain_forwarder ,
21772186 # Dynamic libraries do not have entitlements.
21782187 entitlements = None ,
@@ -2864,6 +2873,7 @@ def _macos_framework_impl(ctx):
28642873 cc_toolchains = cc_toolchain_forwarder ,
28652874 avoid_deps = ctx .attr .frameworks ,
28662875 build_settings = apple_xplat_toolchain_info .build_settings ,
2876+ bundle_name = bundle_name ,
28672877 # Frameworks do not have entitlements.
28682878 entitlements = None ,
28692879 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -3147,6 +3157,7 @@ def _macos_dynamic_framework_impl(ctx):
31473157 cc_toolchains = cc_toolchain_forwarder ,
31483158 avoid_deps = ctx .attr .frameworks ,
31493159 build_settings = apple_xplat_toolchain_info .build_settings ,
3160+ bundle_name = bundle_name ,
31503161 # Frameworks do not have entitlements.
31513162 entitlements = None ,
31523163 exported_symbols_lists = ctx .files .exported_symbols_lists ,
0 commit comments