diff options
| -rw-r--r-- | xmake/core/package/package.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 1e3d2172b..28473c2bf 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -463,6 +463,10 @@ end -- is cross-compilation? function _instance:is_cross() + if self:is_plat("windows") and os.host() == "windows" then + -- always false on windows host + return false + end if not self:is_plat(os.host()) and not self:is_plat(os.subhost()) then return true end |
