Unverified Commit 9b36be7d authored by Sergei Trofimovich's avatar Sergei Trofimovich Committed by GitHub
Browse files

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

pkgsi686Linux.openexr_3: enforce SSE arithmetics (instead of x87)
parents 973f6963 2e7a27e6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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; {