summaryrefslogtreecommitdiff
path: root/xmake/core/project/config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-06-16 23:59:58 +0800
committerruki <[email protected]>2023-06-16 23:59:58 +0800
commit4e1b39f0f2a4381997d0e73b071507cf399ce897 (patch)
tree38b6c04453581bc352926e642508d17ebee9c68b /xmake/core/project/config.lua
parentff6d29ac8742fd494054d49ff049d35acd0e86f7 (diff)
improve pack and pch
Diffstat (limited to 'xmake/core/project/config.lua')
-rw-r--r--xmake/core/project/config.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua
index 57b016e13..a979ffa54 100644
--- a/xmake/core/project/config.lua
+++ b/xmake/core/project/config.lua
@@ -265,7 +265,7 @@ function config.is_value(name, ...)
if not value then return false end
-- exists this value? and escape '-'
- for _, v in ipairs(table.join(...)) do
+ for _, v in ipairs(table.pack(...)) do
if v and type(v) == "string" and value:find("^" .. v:gsub("%-", "%%-") .. "$") then
return true
end
@@ -274,7 +274,7 @@ end
-- has the given configs?
function config.has(...)
- for _, name in ipairs(table.join(...)) do
+ for _, name in ipairs(table.pack(...)) do
if name and type(name) == "string" and config.get(name) then
return true
end