diff --git a/apple/internal/transition_support.bzl b/apple/internal/transition_support.bzl index 113f23255a..81c831face 100644 --- a/apple/internal/transition_support.bzl +++ b/apple/internal/transition_support.bzl @@ -424,6 +424,9 @@ _apple_rule_base_transition_outputs = [ "//command_line_option:watchos_minimum_os", "@build_bazel_rules_swift//swift:emit_swiftinterface", ] +_apple_platform_split_transition_outputs = _apple_rule_base_transition_outputs + [ + "//command_line_option:ios_multi_cpus", +] _apple_universal_binary_rule_transition_outputs = _apple_rule_base_transition_outputs + [ "//command_line_option:ios_multi_cpus", "//command_line_option:macos_cpus", @@ -627,6 +630,9 @@ def _apple_platform_split_transition_impl(settings, attr): platform_type = platform_type, settings = settings, ) + output_dictionary[found_cpu] |= { + "//command_line_option:ios_multi_cpus": environment_arch if platform_type == "ios" and environment_arch else "" + } if not bool(output_dictionary): 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): _apple_platform_split_transition = transition( implementation = _apple_platform_split_transition_impl, inputs = _apple_platform_transition_inputs, - outputs = _apple_rule_base_transition_outputs, + outputs = _apple_platform_split_transition_outputs, ) def _xcframework_transition_impl(settings, attr):