1

Rename _target_darwin to _target_macos

This aligns with bazel's @platforms//os:macos
This commit is contained in:
Jeremy Volkman 2022-12-17 10:19:28 -08:00 committed by Motiejus Jakštys
parent 0db5d2d9e6
commit cba7c5fcae

View File

@ -39,14 +39,14 @@ def zig_tool_path(os):
def target_structs(): def target_structs():
ret = [] ret = []
for zigcpu, gocpu in (("x86_64", "amd64"), ("aarch64", "arm64")): for zigcpu, gocpu in (("x86_64", "amd64"), ("aarch64", "arm64")):
ret.append(_target_darwin(gocpu, zigcpu)) ret.append(_target_macos(gocpu, zigcpu))
ret.append(_target_windows(gocpu, zigcpu)) ret.append(_target_windows(gocpu, zigcpu))
ret.append(_target_linux_musl(gocpu, zigcpu)) ret.append(_target_linux_musl(gocpu, zigcpu))
for glibc in _GLIBCS: for glibc in _GLIBCS:
ret.append(_target_linux_gnu(gocpu, zigcpu, glibc)) ret.append(_target_linux_gnu(gocpu, zigcpu, glibc))
return ret return ret
def _target_darwin(gocpu, zigcpu): def _target_macos(gocpu, zigcpu):
min_os = "11" min_os = "11"
return struct( return struct(
gotarget = "darwin_{}".format(gocpu), gotarget = "darwin_{}".format(gocpu),