diff options
Diffstat (limited to 'xmake/core/base/interpreter.lua')
| -rw-r--r-- | xmake/core/base/interpreter.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua index 97be6a9e7..47b4d02a7 100644 --- a/xmake/core/base/interpreter.lua +++ b/xmake/core/base/interpreter.lua @@ -742,7 +742,7 @@ function interpreter:api_register_on_script(scope_kind, prefix, ...) local implementation = function (self, scope, name, script) -- 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("on_%s(): %s", name, errors) end |
