From ff15181308fa6511fb1e677bb05cf9c67ffcf4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 9 Jul 2023 07:40:07 +0200 Subject: [PATCH] python3Packages.torch: disable fortify3 hardening flag https://hydra.nixos.org/build/226758408/nixlog/2/tail --- pkgs/development/python-modules/torch/default.nix | 3 +++ 1 file changed, 3 insertions(+) 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;