diff options
| author | ruki <[email protected]> | 2017-07-10 09:21:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-07-10 09:21:34 +0800 |
| commit | def23a930fc3780e54b2a8a6fc60854d2e193000 (patch) | |
| tree | d6f268cb27b56c4c191e913cccb3e5d9beaab31a /xmake/core/project/option.lua | |
| parent | cc484e28d357f9b65358001c10a6cd95190e684e (diff) | |
add target.on_load
Diffstat (limited to 'xmake/core/project/option.lua')
| -rw-r--r-- | xmake/core/project/option.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua index e7231de8b..222c5ba93 100644 --- a/xmake/core/project/option.lua +++ b/xmake/core/project/option.lua @@ -237,7 +237,7 @@ function option: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 @@ -248,7 +248,7 @@ function option: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 |
