summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-10 09:21:34 +0800
committerruki <[email protected]>2017-07-10 09:21:34 +0800
commitdef23a930fc3780e54b2a8a6fc60854d2e193000 (patch)
treed6f268cb27b56c4c191e913cccb3e5d9beaab31a /xmake/core/project/target.lua
parentcc484e28d357f9b65358001c10a6cd95190e684e (diff)
add target.on_load
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index ebc778c3a..4b72d5c2e 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -80,7 +80,7 @@ function target:set(name_or_info, ...)
self._INFO[name_or_info] = nil
end
elseif type(name_or_info) == "table" and #name_or_info == 0 then
- for name, info in pairs(name_or_info) do
+ for name, info in pairs(table.join(name_or_info, ...)) do
self:set(name, info)
end
end
@@ -91,7 +91,7 @@ function target:add(name_or_info, ...)
if type(name_or_info) == "string" then
self._INFO[name_or_info] = table.unique(table.join2(table.wrap(self._INFO[name_or_info]), ...))
elseif type(name_or_info) == "table" and #name_or_info == 0 then
- for name, info in pairs(name_or_info) do
+ for name, info in pairs(table.join(name_or_info, ...)) do
self:add(name, info)
end
end