From ccf0e19d55beea941c4b4274e6a6f5ae26aaec2d Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 21 Jan 2024 15:58:44 +0000 Subject: [PATCH] catch2_3: disable trivialautovarinit hardening flag --- pkgs/development/libraries/catch2/3.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/catch2/3.nix b/pkgs/development/libraries/catch2/3.nix index aa8bf62059bd..403c4f729b05 100644 --- a/pkgs/development/libraries/catch2/3.nix +++ b/pkgs/development/libraries/catch2/3.nix @@ -20,6 +20,8 @@ stdenv.mkDerivation rec { cmake ]; + hardeningDisable = [ "trivialautovarinit" ]; + cmakeFlags = [ "-DCATCH_DEVELOPMENT_BUILD=ON" "-DCATCH_BUILD_TESTING=${if doCheck then "ON" else "OFF"}"