diff options
| author | ruki <[email protected]> | 2023-02-18 10:11:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-18 10:11:02 +0800 |
| commit | ab4a4b4872a6bdc70e4fa27a286d93123ec98a68 (patch) | |
| tree | d188f4a285a4a6e84a7dfa7d95c2ad9cd807e1f1 | |
| parent | c474113da22b74c3567f68b4707f6e8d1ab14f53 (diff) | |
improve is_cross
| -rw-r--r-- | xmake/core/package/package.lua | 2 |
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 |
