Merge pull request #226726 from trofi/openexr_3-sse-precision

pkgsi686Linux.openexr_3: enforce SSE arithmetics (instead of x87)
This commit is contained in:
Sergei Trofimovich
2023-04-21 22:19:31 +01:00
committed by GitHub
+4
View File
@@ -32,6 +32,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ imath zlib ];
# Without 'sse' enforcement tests fail on i686 as due to excessive precision as:
# error reading back channel B pixel 21,-76 got -nan expected -nan
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isi686 "-msse2 -mfpmath=sse";
doCheck = true;
meta = with lib; {