Merge pull request #125034 from zhaofengli/libjpeg-riscv

libjpeg-turbo: Fix tests on RISC-V
This commit is contained in:
Jörg Thalheim 2021-05-31 08:22:20 +02:00 committed by GitHub
commit 79f9745487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;