PyTorch: patch breakpad dependency (#40648)

This commit is contained in:
Adam J. Stewart 2023-10-25 16:10:48 -05:00 committed by GitHub
parent 6bd2dd032b
commit 932d7a65e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,7 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
"breakpad",
default=True,
description="Enable breakpad crash dump library",
when="@1.9:1.11",
when="@1.10:1.11",
)
conflicts("+cuda+rocm")
@ -286,6 +286,14 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
when="@1.1:1.8.1",
)
# https://github.com/pytorch/pytorch/issues/70297
patch(
"https://github.com/google/breakpad/commit/605c51ed96ad44b34c457bbca320e74e194c317e.patch?full_index=1",
sha256="694d83db3a2147d543357f22ba5c8d5683d0ed43e693d42bca8f24ec50080f98",
when="+breakpad",
working_dir="third_party/breakpad",
)
# Fixes CMake configuration error when XNNPACK is disabled
# https://github.com/pytorch/pytorch/pull/35607
# https://github.com/pytorch/pytorch/pull/37865