diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-torch/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-torch/package.py b/var/spack/repos/builtin/packages/py-torch/package.py index 4b6cd75acd..afc89b6f8c 100644 --- a/var/spack/repos/builtin/packages/py-torch/package.py +++ b/var/spack/repos/builtin/packages/py-torch/package.py @@ -186,6 +186,13 @@ class PyTorch(PythonPackage, CudaPackage): headers.directories = [root] return headers + @when('@1.5.0:') + def patch(self): + # https://github.com/pytorch/pytorch/issues/52208 + filter_file('torch_global_deps PROPERTIES LINKER_LANGUAGE C', + 'torch_global_deps PROPERTIES LINKER_LANGUAGE CXX', + 'caffe2/CMakeLists.txt') + def setup_build_environment(self, env): def enable_or_disable(variant, keyword='USE', var=None, newer=False): """Set environment variable to enable or disable support for a |