@@ -424,6 +424,9 @@ _apple_rule_base_transition_outputs = [
424424 "//command_line_option:watchos_minimum_os" ,
425425 "@build_bazel_rules_swift//swift:emit_swiftinterface" ,
426426]
427+ _apple_platform_split_transition_outputs = _apple_rule_base_transition_outputs + [
428+ "//command_line_option:ios_multi_cpus" ,
429+ ]
427430_apple_universal_binary_rule_transition_outputs = _apple_rule_base_transition_outputs + [
428431 "//command_line_option:ios_multi_cpus" ,
429432 "//command_line_option:macos_cpus" ,
@@ -627,6 +630,9 @@ def _apple_platform_split_transition_impl(settings, attr):
627630 platform_type = platform_type ,
628631 settings = settings ,
629632 )
633+ output_dictionary [found_cpu ] |= {
634+ "//command_line_option:ios_multi_cpus" : environment_arch if platform_type == "ios" and environment_arch else ""
635+ }
630636
631637 if not bool (output_dictionary ):
632638 error_msg = "Could not find any valid architectures to build for the current target.\n \n "
@@ -649,7 +655,7 @@ def _apple_platform_split_transition_impl(settings, attr):
649655_apple_platform_split_transition = transition (
650656 implementation = _apple_platform_split_transition_impl ,
651657 inputs = _apple_platform_transition_inputs ,
652- outputs = _apple_rule_base_transition_outputs ,
658+ outputs = _apple_platform_split_transition_outputs ,
653659)
654660
655661def _xcframework_transition_impl (settings , attr ):
0 commit comments