diff options
| author | ruki <[email protected]> | 2023-06-16 23:59:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-06-16 23:59:58 +0800 |
| commit | 4e1b39f0f2a4381997d0e73b071507cf399ce897 (patch) | |
| tree | 38b6c04453581bc352926e642508d17ebee9c68b /xmake/core/package/package.lua | |
| parent | ff6d29ac8742fd494054d49ff049d35acd0e86f7 (diff) | |
improve pack and pch
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index ab7d01b88..21842b51f 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -212,7 +212,7 @@ end -- the current platform is belong to the given platforms? function _instance:is_plat(...) local plat = self:plat() - for _, v in ipairs(table.join(...)) do + for _, v in ipairs(table.pack(...)) do if v and plat == v then return true end @@ -222,7 +222,7 @@ end -- the current architecture is belong to the given architectures? function _instance:is_arch(...) local arch = self:arch() - for _, v in ipairs(table.join(...)) do + for _, v in ipairs(table.pack(...)) do if v and arch:find("^" .. v:gsub("%-", "%%-") .. "$") then return true end @@ -247,7 +247,7 @@ end -- the current architecture is belong to the given target architectures? function _instance:is_targetarch(...) local targetarch = self:targetarch() - for _, v in ipairs(table.join(...)) do + for _, v in ipairs(table.pack(...)) do if v and targetarch:find("^" .. v:gsub("%-", "%%-") .. "$") then return true end |
