@@ -304,7 +304,7 @@ def _is_arch_supported_for_target_tuple(*, environment_arch, minimum_os_version,
304304def _command_line_options (
305305 * ,
306306 apple_platforms = [],
307- building_apple_bundle = False ,
307+ building_apple_bundle ,
308308 environment_arch = None ,
309309 force_bundle_outputs = False ,
310310 minimum_os_version ,
@@ -475,7 +475,7 @@ def _apple_rule_base_transition_impl(settings, attr):
475475 """Rule transition for Apple rules using Bazel CPUs and a valid Apple split transition."""
476476 minimum_os_version = attr .minimum_os_version
477477 platform_type = attr .platform_type
478- building_apple_bundle = getattr (attr , "_building_apple_bundle" , False )
478+ building_apple_bundle = getattr (attr , "_building_apple_bundle" , True )
479479 return _command_line_options (
480480 building_apple_bundle = building_apple_bundle ,
481481 environment_arch = _environment_archs (platform_type , minimum_os_version , settings )[0 ],
@@ -539,7 +539,7 @@ def _apple_platforms_rule_base_transition_impl(settings, attr):
539539 """Rule transition for Apple rules using Bazel platforms and the Starlark split transition."""
540540 minimum_os_version = attr .minimum_os_version
541541 platform_type = attr .platform_type
542- building_apple_bundle = getattr (attr , "_building_apple_bundle" , False )
542+ building_apple_bundle = getattr (attr , "_building_apple_bundle" , True )
543543 environment_arch = None
544544 if not settings ["//command_line_option:incompatible_enable_apple_toolchain_resolution" ]:
545545 # Add fallback to match an anticipated split of Apple cpu-based resolution
@@ -563,7 +563,7 @@ def _apple_platforms_rule_bundle_output_base_transition_impl(settings, attr):
563563 """Rule transition for Apple rules using Bazel platforms which force bundle outputs."""
564564 minimum_os_version = attr .minimum_os_version
565565 platform_type = attr .platform_type
566- building_apple_bundle = getattr (attr , "_building_apple_bundle" , False )
566+ building_apple_bundle = getattr (attr , "_building_apple_bundle" , True )
567567 environment_arch = None
568568 if not settings ["//command_line_option:incompatible_enable_apple_toolchain_resolution" ]:
569569 # Add fallback to match an anticipated split of Apple cpu-based resolution
@@ -671,7 +671,7 @@ def _apple_platform_split_transition_impl(settings, attr):
671671 if str (platform ) not in output_dictionary :
672672 output_dictionary [str (platform )] = _command_line_options (
673673 apple_platforms = apple_platforms ,
674- building_apple_bundle = getattr (attr , "_building_apple_bundle" , False ),
674+ building_apple_bundle = getattr (attr , "_building_apple_bundle" , True ),
675675 minimum_os_version = attr .minimum_os_version ,
676676 platform_type = attr .platform_type ,
677677 settings = settings ,
@@ -680,7 +680,7 @@ def _apple_platform_split_transition_impl(settings, attr):
680680 else :
681681 minimum_os_version = attr .minimum_os_version
682682 platform_type = attr .platform_type
683- building_apple_bundle = getattr (attr , "_building_apple_bundle" , False )
683+ building_apple_bundle = getattr (attr , "_building_apple_bundle" , True )
684684 for environment_arch in _environment_archs (platform_type , minimum_os_version , settings ):
685685 found_cpu = _cpu_string (
686686 environment_arch = environment_arch ,
@@ -759,6 +759,7 @@ def _xcframework_base_transition_impl(settings, _):
759759 # incoming settings meant for other platforms overriding the settings for the xcframework rule's
760760 # underlying actions, and allow for toolchain resolution in the future.
761761 return _command_line_options (
762+ building_apple_bundle = False ,
762763 environment_arch = _DEFAULT_ARCH ,
763764 minimum_os_version = None ,
764765 platform_type = "macos" ,
@@ -790,7 +791,7 @@ def _xcframework_split_transition_impl(settings, attr):
790791 target_environments .append ("simulator" )
791792
792793 command_line_options = _command_line_options_for_xcframework_platform (
793- building_apple_bundle = getattr (attr , "_building_apple_bundle" , False ),
794+ building_apple_bundle = getattr (attr , "_building_apple_bundle" , True ),
794795 minimum_os_version = attr .minimum_os_versions .get (platform_type ),
795796 platform_attr = platform_attr ,
796797 platform_type = platform_type ,
0 commit comments