Unverified Commit 9b2d4a01 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

parents fcee4f47 48c74450
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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;