From ab4a4b4872a6bdc70e4fa27a286d93123ec98a68 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Feb 2023 10:11:02 +0800 Subject: improve is_cross --- xmake/core/package/package.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1