Merge #206230: x265: only disable assembly on riscv-cross builds

...into staging
This commit is contained in:
Vladimír Čunát 2022-12-16 11:21:59 +01:00
commit cb835f1071
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -35,8 +35,7 @@ let
(mkFlag vtuneSupport "ENABLE_VTUNE")
(mkFlag werrorSupport "WARNINGS_AS_ERRORS")
# Potentially riscv cross could be fixed by providing the correct CMAKE_SYSTEM_PROCESSOR flag
(mkFlag (with stdenv; !(isCross && hostPlatform.isRiscV || isDarwin && isAarch64)) "ENABLE_ASSEMBLY")
];
] ++ lib.optional (isCross && stdenv.hostPlatform.isRiscV) "-DENABLE_ASSEMBLY=OFF";
cmakeStaticLibFlags = [
"-DHIGH_BIT_DEPTH=ON"