summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-08 18:06:23 +0800
committerruki <[email protected]>2020-03-08 18:06:23 +0800
commit07cb69433cdc6a8d60504ae88cc6251f9c69201a (patch)
tree1e4554c8f1941a620c0240d5d2c8e43e2d7789e5 /xmake/core/base/interpreter.lua
parent3f5723c632d0734ce3ea93e174cdf099eeefb543 (diff)
fix jobpool
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 579ffec46..9e9583d32 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -286,6 +286,13 @@ function interpreter:_api_register_xxx_script(scope_kind, action, ...)
-- get arguments, pattern1, pattern2, ..., script function or name
local args = {...}
+ -- get and save extra config
+ local extra_config = args[#args]
+ if table.is_dictionary(extra_config) then
+ table.remove(args)
+ scope["__extra_" .. name] = extra_config
+ end
+
-- get patterns
local patterns = {}
if #args > 1 then