@@ -241,6 +241,7 @@ def _macos_application_impl(ctx):
241241 ctx ,
242242 cc_toolchains = cc_toolchain_forwarder ,
243243 avoid_deps = ctx .attr .frameworks ,
244+ build_settings = apple_xplat_toolchain_info .build_settings ,
244245 entitlements = entitlements .linking ,
245246 exported_symbols_lists = ctx .files .exported_symbols_lists ,
246247 platform_prerequisites = platform_prerequisites ,
@@ -546,6 +547,7 @@ def _macos_bundle_impl(ctx):
546547 link_result = linking_support .register_binary_linking_action (
547548 ctx ,
548549 cc_toolchains = cc_toolchain_forwarder ,
550+ build_settings = apple_xplat_toolchain_info .build_settings ,
549551 bundle_loader = ctx .attr .bundle_loader ,
550552 entitlements = entitlements .linking ,
551553 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -800,6 +802,7 @@ def _macos_extension_impl(ctx):
800802 ctx ,
801803 cc_toolchains = cc_toolchain_forwarder ,
802804 avoid_deps = ctx .attr .frameworks ,
805+ build_settings = apple_xplat_toolchain_info .build_settings ,
803806 entitlements = entitlements .linking ,
804807 exported_symbols_lists = ctx .files .exported_symbols_lists ,
805808 extra_linkopts = extra_linkopts ,
@@ -1068,6 +1071,7 @@ def _macos_quick_look_plugin_impl(ctx):
10681071
10691072 link_result = linking_support .register_binary_linking_action (
10701073 ctx ,
1074+ build_settings = apple_xplat_toolchain_info .build_settings ,
10711075 cc_toolchains = cc_toolchain_forwarder ,
10721076 entitlements = entitlements .linking ,
10731077 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -1322,6 +1326,7 @@ def _macos_kernel_extension_impl(ctx):
13221326
13231327 link_result = linking_support .register_binary_linking_action (
13241328 ctx ,
1329+ build_settings = apple_xplat_toolchain_info .build_settings ,
13251330 cc_toolchains = cc_toolchain_forwarder ,
13261331 entitlements = entitlements .linking ,
13271332 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -1565,6 +1570,7 @@ def _macos_spotlight_importer_impl(ctx):
15651570
15661571 link_result = linking_support .register_binary_linking_action (
15671572 ctx ,
1573+ build_settings = apple_xplat_toolchain_info .build_settings ,
15681574 cc_toolchains = cc_toolchain_forwarder ,
15691575 entitlements = entitlements .linking ,
15701576 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -1806,6 +1812,7 @@ def _macos_xpc_service_impl(ctx):
18061812
18071813 link_result = linking_support .register_binary_linking_action (
18081814 ctx ,
1815+ build_settings = apple_xplat_toolchain_info .build_settings ,
18091816 cc_toolchains = cc_toolchain_forwarder ,
18101817 entitlements = entitlements .linking ,
18111818 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -2022,6 +2029,7 @@ def _macos_command_line_application_impl(ctx):
20222029
20232030 link_result = linking_support .register_binary_linking_action (
20242031 ctx ,
2032+ build_settings = apple_xplat_toolchain_info .build_settings ,
20252033 cc_toolchains = cc_toolchain_forwarder ,
20262034 # Command-line applications do not have entitlements.
20272035 entitlements = None ,
@@ -2164,6 +2172,7 @@ def _macos_dylib_impl(ctx):
21642172
21652173 link_result = linking_support .register_binary_linking_action (
21662174 ctx ,
2175+ build_settings = apple_xplat_toolchain_info .build_settings ,
21672176 cc_toolchains = cc_toolchain_forwarder ,
21682177 # Dynamic libraries do not have entitlements.
21692178 entitlements = None ,
@@ -2856,6 +2865,7 @@ def _macos_framework_impl(ctx):
28562865 ctx ,
28572866 cc_toolchains = cc_toolchain_forwarder ,
28582867 avoid_deps = ctx .attr .frameworks ,
2868+ build_settings = apple_xplat_toolchain_info .build_settings ,
28592869 # Frameworks do not have entitlements.
28602870 entitlements = None ,
28612871 exported_symbols_lists = ctx .files .exported_symbols_lists ,
@@ -3139,6 +3149,7 @@ def _macos_dynamic_framework_impl(ctx):
31393149 ctx ,
31403150 cc_toolchains = cc_toolchain_forwarder ,
31413151 avoid_deps = ctx .attr .frameworks ,
3152+ build_settings = apple_xplat_toolchain_info .build_settings ,
31423153 # Frameworks do not have entitlements.
31433154 entitlements = None ,
31443155 exported_symbols_lists = ctx .files .exported_symbols_lists ,
0 commit comments