summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author白喵 <[email protected]>2024-07-22 17:36:46 +0800
committer白喵 <[email protected]>2024-07-22 17:36:46 +0800
commitbcdc71d60d1896c71a057438a859d9e6f7126c80 (patch)
tree4b7e9278238c2c701eb44f77090bbf2ef395fbe6
parenteb976c3a690f4eebcb79dc4492b830c5bf7830e9 (diff)
remove unuse _get_vsarch
-rw-r--r--xmake/modules/package/tools/cmake.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 172f11f35..b4337c4f7 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -98,17 +98,6 @@ function _get_msvc_runenvs(package)
return os.joinenvs(_get_msvc(package):runenvs())
end
--- get vs arch
-function _get_vsarch(package)
- local arch = package:arch()
- if arch == "x86" or arch == "i386" then return "Win32" end
- if arch == "x86_64" then return "x64" end
- if arch == "arm64ec" then return "ARM64EC" end
- if arch:startswith("arm64") then return "ARM64" end
- if arch:startswith("arm") then return "ARM" end
- return arch
-end
-
-- get cflags from package deps
function _get_cflags_from_packagedeps(package, opt)
local result = {}