瀏覽代碼

fix(svt-av1): fix build error on arm

冰雪殇璃陌梦 2 年之前
父節點
當前提交
9d65d79255
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/s/svt-av1/xmake.lua

+ 2 - 0
packages/s/svt-av1/xmake.lua

@@ -37,6 +37,8 @@ package("svt-av1")
             io.replace(path.join(os.curdir(), "Source", "Lib", "Encoder", "CMakeLists.txt"), "list(APPEND PLATFORM_LIBS Threads::Threads)", "", {plain = true})
         elseif package:is_plat("mingw") and package:is_arch("x64", "x86_64") then
             table.insert(configs, "-DCMAKE_SYSTEM_PROCESSOR=AMD64")
+        elseif package:is_plat("android") and package:is_arch("arm64.*") then
+            table.insert(configs, "-DCMAKE_SYSTEM_PROCESSOR=aarch64")
         end
         import("package.tools.cmake").install(package, configs)
     end)