Skip to content

Commit

Permalink
Merge pull request #333539 from trofi/x264-unbreak-arm64
Browse files Browse the repository at this point in the history
x265: fix cross-compilation to aarch64
  • Loading branch information
emilazy authored Aug 10, 2024
2 parents 68894e5 + c4a07c3 commit 4085c54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/libraries/x265/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4085c54

Please sign in to comment.