x265: only disable assembly on riscv-cross builds

This commit is contained in:
Jörg Thalheim 2022-12-15 12:48:29 +01:00
parent a2232d0c6b
commit fde44ef915

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 (!(isCross && stdenv.hostPlatform.isRiscV)) "ENABLE_ASSEMBLY")
];
] ++ lib.optional (isCross && stdenv.hostPlatform.isRiscV) "-DENABLE_ASSEMBLY=OFF";
cmakeStaticLibFlags = [
"-DHIGH_BIT_DEPTH=ON"