libjpeg-turbo: Fix tests on RISC-V

This fixes the tests on RISC-V caused by floating point behavior
differences (see linked upstream issue).
launchpad/nixpkgs/master
Zhaofeng Li 3 years ago
parent 4d90a6bcc4
commit b1e1a50c00
  1. 4
      pkgs/development/libraries/libjpeg-turbo/default.nix

@ -40,6 +40,10 @@ stdenv.mkDerivation rec {
"-DENABLE_SHARED=${if enableShared then "1" else "0"}"
] ++ lib.optionals enableJava [
"-DWITH_JAVA=1"
] ++ lib.optionals stdenv.hostPlatform.isRiscV [
# https://github.com/libjpeg-turbo/libjpeg-turbo/issues/428
# https://github.com/libjpeg-turbo/libjpeg-turbo/commit/88bf1d16786c74f76f2e4f6ec2873d092f577c75
"-DFLOATTEST=fp-contract"
];
doInstallCheck = true;

Loading…
Cancel
Save