Fix and adjust darwin libc header paths depending on CPU
This commit is contained in:
parent
77688d0a45
commit
9ede1507c3
@ -54,15 +54,17 @@ _GLIBCS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
def _target_darwin(gocpu, zigcpu):
|
def _target_darwin(gocpu, zigcpu):
|
||||||
|
min_os = "10"
|
||||||
|
if zigcpu == "aarch64":
|
||||||
|
min_os = "11"
|
||||||
return struct(
|
return struct(
|
||||||
gotarget = "darwin_{}".format(gocpu),
|
gotarget = "darwin_{}".format(gocpu),
|
||||||
zigtarget = "{}-macos-gnu".format(zigcpu),
|
zigtarget = "{}-macos-gnu".format(zigcpu),
|
||||||
includes = [
|
includes = [
|
||||||
"libunwind/include",
|
"libunwind/include",
|
||||||
# FIXME: add macos.10, macos.11 and macos.12 targets,
|
# TODO: Define a toolchain for each minimum OS version
|
||||||
# and adjust the includes
|
"libc/include/{}-macos.{}-gnu".format(zigcpu, min_os),
|
||||||
"libc/include/{}-macos.10-gnu".format(zigcpu),
|
"libc/include/any-macos.{}-any".format(min_os),
|
||||||
"libc/include/{}-macos-any".format(zigcpu),
|
|
||||||
"libc/include/any-macos-any",
|
"libc/include/any-macos-any",
|
||||||
],
|
],
|
||||||
linkopts = [],
|
linkopts = [],
|
||||||
|
Loading…
Reference in New Issue
Block a user