diff options
| author | ruki <[email protected]> | 2022-09-27 22:37:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-09-27 22:37:12 +0800 |
| commit | 466896dac3710e145baa671c95af27a97dbb5ebe (patch) | |
| tree | e79248fb230c650f55f964bfe8ee0ecd4b3dfc1d /xmake/core/project/rule.lua | |
| parent | 701f42aec0dd4acb291a7c69582823687a5edf85 (diff) | |
impl target:rule_set
Diffstat (limited to 'xmake/core/project/rule.lua')
| -rw-r--r-- | xmake/core/project/rule.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/core/project/rule.lua b/xmake/core/project/rule.lua index 1ac551ffd..39a7c49e3 100644 --- a/xmake/core/project/rule.lua +++ b/xmake/core/project/rule.lua @@ -39,6 +39,15 @@ function _instance:base() return self._BASE end +-- clone rule +function _instance:clone() + local instance = rule.new(self:name(), self._INFO:clone()) + -- TODO + instance._RULES = self._RULES + instance._ORDERDEPS = self._ORDERDEPS + return instance +end + -- get the rule info function _instance:get(name) local value = self._INFO:get(name) |
