lol

catch2_3: fix build on riscv and armv7l

Co-authored-by: misuzu <neironyan@gmail.com>

+4 -1
+4 -1
pkgs/development/libraries/catch2/3.nix
··· 31 31 "-DCMAKE_CTEST_ARGUMENTS=-E;ApprovalTests" 32 32 ]; 33 33 34 - # Tests fail on x86_32 if compiled with x87 floats: https://github.com/catchorg/Catch2/issues/2796 35 34 env = lib.optionalAttrs stdenv.isx86_32 { 35 + # Tests fail on x86_32 if compiled with x87 floats: https://github.com/catchorg/Catch2/issues/2796 36 36 NIX_CFLAGS_COMPILE = "-msse2 -mfpmath=sse"; 37 + } // lib.optionalAttrs (stdenv.hostPlatform.isRiscV || stdenv.hostPlatform.isAarch32) { 38 + # Build failure caused by -Werror: https://github.com/catchorg/Catch2/issues/2808 39 + NIX_CFLAGS_COMPILE = "-Wno-error=cast-align"; 37 40 }; 38 41 39 42 doCheck = true;