From aaf5c54afd4ba60a5717d637181617c729f997cd Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Thu, 11 Feb 2021 09:36:43 -0800 Subject: [PATCH] libaom: disable runtime cpu detection on darwin (#112685) CPU detection is only enabled for PPC and ARM. It's also not implemented on Darwin, so no reason to keep it enabled there. This helps #105026. --- pkgs/development/libraries/libaom/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/libaom/default.nix b/pkgs/development/libraries/libaom/default.nix index 9706cda03f8b..0522cdf2d500 100644 --- a/pkgs/development/libraries/libaom/default.nix +++ b/pkgs/development/libraries/libaom/default.nix @@ -32,6 +32,9 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DENABLE_TESTS=OFF" + ] ++ lib.optionals stdenv.isDarwin [ + # CPU detection isn't supported on Darwin and breaks the aarch64-darwin build: + "-DCONFIG_RUNTIME_CPU_DETECT=OFF" ]; postFixup = ''