catch2_3: fix build on i686

This commit is contained in:
K900 2024-01-25 13:58:23 +03:00
parent 0c10ec9d2c
commit 3f258b8e44

View file

@ -29,6 +29,11 @@ stdenv.mkDerivation rec {
"-DCMAKE_CTEST_ARGUMENTS=-E;ApprovalTests"
];
# Tests fail on x86_32 if compiled with x87 floats: https://github.com/catchorg/Catch2/issues/2796
env = lib.optionalAttrs stdenv.isx86_32 {
NIX_CFLAGS_COMPILE = "-msse2 -mfpmath=sse";
};
doCheck = true;
nativeCheckInputs = [