libvpx: fix loongarch64 no-lsx build (#402883)

This commit is contained in:
Aleksana
2025-05-03 18:52:44 +08:00
committed by GitHub
+9 -1
View File
@@ -99,10 +99,18 @@ let
isGeneric =
(stdenv.hostPlatform.isPower && stdenv.hostPlatform.isLittleEndian)
|| stdenv.hostPlatform.parsed.cpu.name == "armv6l"
|| stdenv.hostPlatform.isLoongArch64
|| stdenv.hostPlatform.isRiscV;
target =
if (stdenv.hostPlatform.isBSD || stdenv.hostPlatform != stdenv.buildPlatform) then
if
(
stdenv.hostPlatform.isBSD
|| stdenv.hostPlatform != stdenv.buildPlatform
# https://issues.chromium.org/issues/359039635
|| stdenv.hostPlatform.isLoongArch64
)
then
(if isGeneric then "generic-gnu" else "${cpu}-${kernel}-gcc")
else
null;