summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 15cfcd117..fd7cc58e3 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -625,7 +625,7 @@ end
function _instance:is_cross()
if os.host() == "windows" then
if self:is_plat("windows") and
- self:is_arch(os.arch()) then -- maybe cross-compilation for arm64 on x86/x64
+ not self:is_arch("arm64") then -- maybe cross-compilation for arm64 on x86/x64
return false
elseif self:is_plat("mingw") then
return false