PyTorch: fix build with Xcode 15 (#40460)
This commit is contained in:
parent
995e82e72b
commit
285a50f862
1 changed files with 4 additions and 0 deletions
|
@ -634,6 +634,10 @@ def enable_or_disable(variant, keyword="USE", var=None, newer=False):
|
|||
# https://github.com/pytorch/pytorch/issues/60332
|
||||
# env.set("USE_SYSTEM_XNNPACK", "ON")
|
||||
|
||||
# https://github.com/pytorch/pytorch/issues/111086
|
||||
if self.spec.satisfies("%apple-clang@15:"):
|
||||
env.append_flags("LDFLAGS", "-Wl,-ld_classic")
|
||||
|
||||
@run_before("install")
|
||||
def build_amd(self):
|
||||
if "+rocm" in self.spec:
|
||||
|
|
Loading…
Reference in a new issue