libaom: only disable cpu detectio on arm64 and do it as recommended

Having `OFF` instead of `0` makes x86_64 build unhappy.
wip/yesman
Ivan Babrou 3 years ago
parent a115355b20
commit e99678639d
  1. 4
      pkgs/development/libraries/libaom/default.nix

@ -32,9 +32,9 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DENABLE_TESTS=OFF"
] ++ lib.optionals stdenv.isDarwin [
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
# CPU detection isn't supported on Darwin and breaks the aarch64-darwin build:
"-DCONFIG_RUNTIME_CPU_DETECT=OFF"
"-DCONFIG_RUNTIME_CPU_DETECT=0"
];
postFixup = ''

Loading…
Cancel
Save