diff options
| author | ruki <[email protected]> | 2021-08-01 18:23:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-01 18:23:44 +0800 |
| commit | 488a917cf3d2f121b3147a7730668a9014e53bec (patch) | |
| tree | 695ade9be6ce3e380988cf82145ae9576b68bfed | |
| parent | cdf6f04361f0ff08562e62f22b3fec8367cfde2a (diff) | |
improve package:is_cross
| -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 |
