From f7fa39509bc283313337d02ed2869013dfb79273 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 10 Nov 2024 13:32:03 -0800 Subject: [PATCH] ctest_2_3: disable warn as error the development build is enabled for tests but also enables warn as error which creates an error when building the tests on clang-19. --- pkgs/development/libraries/catch2/3.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/catch2/3.nix b/pkgs/development/libraries/catch2/3.nix index b005dc3f8116..fe83ce36bf0b 100644 --- a/pkgs/development/libraries/catch2/3.nix +++ b/pkgs/development/libraries/catch2/3.nix @@ -25,6 +25,7 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DCATCH_DEVELOPMENT_BUILD=ON" "-DCATCH_BUILD_TESTING=${if doCheck then "ON" else "OFF"}" + "-DCATCH_ENABLE_WERROR=OFF" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && doCheck) [ # test has a faulty path normalization technique that won't work in # our darwin build environment https://github.com/catchorg/Catch2/issues/1691