summaryrefslogtreecommitdiff
path: root/xmake/core/base/scopeinfo.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-28 00:55:57 +0800
committerruki <[email protected]>2022-09-28 00:55:57 +0800
commit4a67a67c0535f465dec6d1054579d3960ed057bf (patch)
tree36bde57df79c99768b9173f83ebf9e98bd10148e /xmake/core/base/scopeinfo.lua
parent387559affcc0239182e51101c67278e989a655e5 (diff)
clone and add targets
Diffstat (limited to 'xmake/core/base/scopeinfo.lua')
-rw-r--r--xmake/core/base/scopeinfo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/scopeinfo.lua b/xmake/core/base/scopeinfo.lua
index ef15fc2e1..f6dd7d475 100644
--- a/xmake/core/base/scopeinfo.lua
+++ b/xmake/core/base/scopeinfo.lua
@@ -666,7 +666,7 @@ end
-- clone a new instance from the current
function _instance:clone()
- return _instance.new(self:kind(), self:info(), {interpreter = self:interpreter(), deduplicate = self._DEDUPLICATE, enable_filter = self._ENABLE_FILTER})
+ return _instance.new(self:kind(), table.clone(self:info()), {interpreter = self:interpreter(), deduplicate = self._DEDUPLICATE, enable_filter = self._ENABLE_FILTER})
end
-- new a scope instance