diff options
| author | ruki <[email protected]> | 2021-05-18 23:02:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-05-18 23:02:36 +0800 |
| commit | 9182c06e0aa51f7bcbdff3ec9477fb0ffe53c940 (patch) | |
| tree | cd56f8cdb892924156835b5b6b64161cef7154dc | |
| parent | f47a21b5027727bf9cf278f2c4b76738b633255d (diff) | |
switch to subhost for package/binary
| -rw-r--r-- | xmake/core/package/package.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index b96db2849..c8c00c9d7 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -112,7 +112,7 @@ end function _instance:plat() -- @note we uses os.host() instead of them for the binary package if self:is_binary() then - return os.host() + return os.subhost() end local requireinfo = self:requireinfo() if not plat and requireinfo and requireinfo.plat then @@ -125,7 +125,7 @@ end function _instance:arch() -- @note we uses os.arch() instead of them for the binary package if self:is_binary() then - return os.arch() + return os.subarch() end return self:targetarch() end @@ -1605,7 +1605,7 @@ function package._target_plat() end end if not plat then - plat = config.get("plat") or os.host() + plat = config.get("plat") or os.subhost() end package._memcache():set("target_plat", plat) end @@ -1623,7 +1623,7 @@ function package._target_arch() end end if not arch then - arch = config.get("arch") or os.arch() + arch = config.get("arch") or os.subarch() end package._memcache():set("target_arch", arch) end |
