Skip to content

Commit

Permalink
Fix ios_multi_cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
vakhidbetrakhmadov committed Aug 27, 2024
1 parent 5699172 commit 1f596ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apple/internal/transition_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand All @@ -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):
Expand Down

0 comments on commit 1f596ef

Please sign in to comment.