Skip to content

Commit

Permalink
Move Host Cpu Condition to the Bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeattie42 committed May 5, 2023
1 parent 2d8d143 commit 4e73e27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apple/internal/transition_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ 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 All @@ -113,6 +110,9 @@ def _cpu_string(*, cpu, platform_type, settings = {}):
cpu_value = settings["//command_line_option:cpu"]
if cpu_value.startswith("darwin_"):
return cpu_value
host_cpu = settings["//command_line_option:host_cpu"]
if host_cpu == "darwin":
return "darwin"
return "darwin_x86_64"
if platform_type == "tvos":
if cpu:
Expand Down

0 comments on commit 4e73e27

Please sign in to comment.