enable macos arm64 of libtorch (#3759)

macos arm64 build as expected: https://github.com/xmake-io/xmake-repo/actions/runs/8644511862/job/23699936295
pull/3762/head
Fuxing Huang 10 months ago committed by GitHub
parent f371c1e01f
commit 5d8b52a796
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/l/libtorch/xmake.lua

@ -50,7 +50,7 @@ package("libtorch")
set_policy("platform.longpaths", true)
end
on_load("windows|x64", "macosx|x86_64", "linux", function (package)
on_load("windows|x64", "macosx", "linux", function (package)
if package:config("ninja") then
package:add("deps", "ninja")
end
@ -75,7 +75,7 @@ package("libtorch")
end
end)
on_install("windows|x64", "macosx|x86_64", "linux", function (package)
on_install("windows|x64", "macosx", "linux", function (package)
import("package.tools.cmake")
import("core.tool.toolchain")

Loading…
Cancel
Save