summaryrefslogtreecommitdiff
path: root/xmake/core/base/deprecated/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-04-11 14:08:47 +0800
committerruki <[email protected]>2016-04-11 14:08:47 +0800
commit833bfb207b3f924eaa81feb496cf74e6223d0041 (patch)
tree0b1774ba14cbe63ecb6eb347deea19975f2c8554 /xmake/core/base/deprecated/interpreter.lua
parent71296f55db2d5b0a9249592c3428797708cd0683 (diff)
add new tool module
Diffstat (limited to 'xmake/core/base/deprecated/interpreter.lua')
-rw-r--r--xmake/core/base/deprecated/interpreter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/deprecated/interpreter.lua b/xmake/core/base/deprecated/interpreter.lua
index 22e0cde00..ec06d8866 100644
--- a/xmake/core/base/deprecated/interpreter.lua
+++ b/xmake/core/base/deprecated/interpreter.lua
@@ -122,7 +122,7 @@ function deprecated_interpreter:api_register_set_script(scope_kind, prefix, ...)
utils.warning("please uses on_%s(), \"set_%s()\" has been deprecated!", name, name, scope)
-- make sandbox instance with the given script
- local instance, errors = sandbox.new(script, self)
+ local instance, errors = sandbox.new(script, self:filter(), self:rootdir())
if not instance then
os.raise("set_%s(): %s", name, errors)
end