Skip to content

Commit

Permalink
Intel x86 Mac Cpu Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeattie42 committed May 3, 2023
1 parent 796fae6 commit 2d8d143
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apple/internal/transition_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def _cpu_string(*, cpu, platform_type, settings = {}):
return "ios_sim_arm64"
return "ios_x86_64"
if platform_type == "macos":
host_cpu = settings["//command_line_option:host_cpu"]
if host_cpu == "darwin":
return "darwin"
if cpu:
return "darwin_{}".format(cpu)
macos_cpus = settings["//command_line_option:macos_cpus"]
Expand Down Expand Up @@ -342,6 +345,7 @@ _apple_rule_common_transition_inputs = [
"//command_line_option:apple_crosstool_top",
]
_apple_rule_base_transition_inputs = _apple_rule_common_transition_inputs + [
"//command_line_option:host_cpu",
"//command_line_option:cpu",
"//command_line_option:ios_multi_cpus",
"//command_line_option:macos_cpus",
Expand Down

0 comments on commit 2d8d143

Please sign in to comment.