summaryrefslogtreecommitdiff
path: root/xmake/core/project/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-25 10:34:33 +0800
committerruki <[email protected]>2017-05-25 10:34:33 +0800
commit79f3d173f193de0e30a4b57e903abe184b170082 (patch)
tree6647a80e82327ba21cc2c1dfaa9f01b54eabf742 /xmake/core/project/task.lua
parent1c48d7c8a0d5646c8452fb3ee1f08eb68fe7311d (diff)
fix interpreter bug when parsing multi-level subdirs
Diffstat (limited to 'xmake/core/project/task.lua')
-rw-r--r--xmake/core/project/task.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/core/project/task.lua b/xmake/core/project/task.lua
index a162d84e4..08097ded6 100644
--- a/xmake/core/project/task.lua
+++ b/xmake/core/project/task.lua
@@ -29,7 +29,6 @@ local task = task or {}
local os = require("base/os")
local table = require("base/table")
local utils = require("base/utils")
-local filter = require("base/filter")
local string = require("base/string")
local interpreter = require("base/interpreter")
local sandbox = require("sandbox/sandbox")
@@ -183,7 +182,7 @@ function task._interpreter()
}
-- set filter
- interp:filter_set(filter.new(function (variable)
+ interp:filter():register("task", function (variable)
-- check
assert(variable)
@@ -212,7 +211,7 @@ function task._interpreter()
-- ok?
return result
- end))
+ end)
-- save interpreter
task._INTERPRETER = interp