catch2_3: fix build on i686
This commit is contained in:
parent
0c10ec9d2c
commit
3f258b8e44
1 changed files with 5 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue