diff options
| author | ruki <[email protected]> | 2023-10-24 22:53:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-24 22:53:05 +0800 |
| commit | 66b43560f7cf25b20ecb78a85dc17fe1f975bb48 (patch) | |
| tree | 52e461ab60c8c76d6b5a8ae8a379121991573df9 /xmake/core/package/package.lua | |
| parent | 645d407a01aa69d35d5340c66f5e109583e4c427 (diff) | |
pass extras to tools
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 769551bcb..bbc303929 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -912,8 +912,11 @@ function _instance:manifest_save() if value ~= nil then vars = vars or {} vars[name] = value - extras = extras or {} - extras[name] = self:extraconf(name) + local extra = self:extraconf(name) + if extra then + extras = extras or {} + extras[name] = extra + end end for _, component_name in ipairs(table.wrap(self:get("components"))) do local comp = self:component(component_name) |
