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

Having `OFF` instead of `0` makes x86_64 build unhappy.
This commit is contained in:
Ivan Babrou 2021-02-11 23:28:02 -08:00
parent a115355b20
commit e99678639d

View File

@ -32,9 +32,9 @@ stdenv.mkDerivation rec {
cmakeFlags = [ cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=ON"
"-DENABLE_TESTS=OFF" "-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: # CPU detection isn't supported on Darwin and breaks the aarch64-darwin build:
"-DCONFIG_RUNTIME_CPU_DETECT=OFF" "-DCONFIG_RUNTIME_CPU_DETECT=0"
]; ];
postFixup = '' postFixup = ''