mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 18:44:13 +00:00
x265: fix build on aarch64
Before the change we enabled arm32 code on arm64 targets. After the change we have them separate.
This commit is contained in:
parent
eea70edfc7
commit
c4a07c3c0a
@ -92,10 +92,14 @@ stdenv.mkDerivation rec {
|
||||
${mkFlag (!stdenv.hostPlatform.isStatic) "ENABLE_SHARED"}
|
||||
-DHIGH_BIT_DEPTH=OFF
|
||||
-DENABLE_HDR10_PLUS=ON
|
||||
${mkFlag (isCross && stdenv.hostPlatform.isAarch) "CROSS_COMPILE_ARM"}
|
||||
${mkFlag (isCross && stdenv.hostPlatform.isAarch32) "CROSS_COMPILE_ARM"}
|
||||
${mkFlag cliSupport "ENABLE_CLI"}
|
||||
${mkFlag unittestsSupport "ENABLE_TESTS"}
|
||||
)
|
||||
'' + lib.optionalString isCross ''
|
||||
cmakeFlagsArray+=(
|
||||
${mkFlag (isCross && stdenv.hostPlatform.isAarch64) "CROSS_COMPILE_ARM64"}
|
||||
)
|
||||
'';
|
||||
|
||||
# Builds 10bits and 12bits static libs on the side if multi bit-depth is wanted
|
||||
|
Loading…
Reference in New Issue
Block a user