Skip to content

Commit 1f596ef

Browse files
Fix ios_multi_cpus
1 parent 5699172 commit 1f596ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apple/internal/transition_support.bzl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

655661
def _xcframework_transition_impl(settings, attr):

0 commit comments

Comments
 (0)