diff options
| author | ruki <[email protected]> | 2020-11-04 22:45:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-04 22:45:20 +0800 |
| commit | 121b0e118edf589e3b0a6ef4947ef5339f340557 (patch) | |
| tree | cc48390e4b76e3f268280669ce9b0dc9d31577db /xmake/core/package/package.lua | |
| parent | 82431e3210c48c08861d4e4c73dad4bda2ae4d7b (diff) | |
use subhost for script pattern
Diffstat (limited to 'xmake/core/package/package.lua')
| -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 e6f9738a2..684055038 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -791,7 +791,7 @@ function _instance:script(name, generic) end return "" end) - if not _pattern:startswith("__") and (not hosts_spec or hosts[os.host() .. '|' .. os.arch()] or hosts[os.host()]) + if not _pattern:startswith("__") and (not hosts_spec or hosts[os.subhost() .. '|' .. os.subarch()] or hosts[os.subhost()]) and (_pattern:trim() == "" or (plat .. '|' .. arch):find('^' .. _pattern .. '$') or plat:find('^' .. _pattern .. '$')) then result = _script break |
