libaom: fix cross

Apparently the CMake variable for indicating the assembler has
changed from `AS_EXECUTABLE` to `CMAKE_ASM_COMPILER`.
This commit is contained in:
Adam Joseph 2023-11-08 04:08:40 -08:00
parent 408ed815c6
commit 10bc6bce5a

View File

@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
# CPU detection isn't supported on Darwin and breaks the aarch64-darwin build:
"-DCONFIG_RUNTIME_CPU_DETECT=0"
] ++ lib.optionals (isCross && !stdenv.hostPlatform.isx86) [
"-DAS_EXECUTABLE=${stdenv.cc.targetPrefix}as"
"-DCMAKE_ASM_COMPILER=${stdenv.cc.targetPrefix}as"
] ++ lib.optionals stdenv.isAarch32 [
# armv7l-hf-multiplatform does not support NEON
# see lib/systems/platform.nix