Kaynağa Gözat

Auto-update libcpuid to v0.7.0 (#5092)

* Update libcpuid to v0.7.0

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua

* Update xmake.lua
Jérôme Leclercq 11 ay önce
ebeveyn
işleme
7b6d85f7df
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      packages/l/libcpuid/xmake.lua

+ 2 - 0
packages/l/libcpuid/xmake.lua

@@ -4,6 +4,7 @@ package("libcpuid")
 
     add_urls("https://github.com/anrieff/libcpuid/archive/refs/tags/$(version).tar.gz",
              "https://github.com/anrieff/libcpuid.git")
+    add_versions("v0.7.0", "cfd9e6bcda5da3f602273e55f983bdd747cb93dde0b9ec06560e074939314210")
     add_versions("v0.6.5", "4d106d66d211f2bfaf876eb62c84d4b54664e1c2b47eb6138161d3c608c0bc5e")
     add_versions("v0.6.4", "1cbb1a79bfe6c37884a538b56504fa0975e78e492aee7c265a42f654c6056cb3")
     add_versions("v0.6.3", "da570fdeb450634d84208f203487b2e00633eac505feda5845f6921e811644fc")
@@ -18,6 +19,7 @@ package("libcpuid")
         io.replace("CMakeLists.txt", "add_subdirectory(tests)", "", {plain = true})
         if package:is_plat("windows") then
             table.insert(configs, "-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON")
+            table.insert(configs, "-DMSVC_CXX_ARCHITECTURE_ID=" .. package:targetarch())
         end
         import("package.tools.cmake").install(package, configs)
     end)