diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index c61601808273..5e0c56800073 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -208,6 +208,9 @@ in buildPythonPackage rec { # Use pytorch's custom configurations dontUseCmakeConfigure = true; + # causes possible redefinition of _FORTIFY_SOURCE + hardeningDisable = [ "fortify3" ]; + BUILD_NAMEDTENSOR = setBool true; BUILD_DOCS = setBool buildDocs;