summaryrefslogtreecommitdiff
path: root/xmake/core/project/task.lua
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-25 11:17:46 +0800
committerTitanSnow <[email protected]>2017-05-25 11:17:46 +0800
commitabb1d5705ecd01d906f63c7d838b73b7c2d1ede6 (patch)
tree6873180d5756c809117dc5c9f8f594aba56af435 /xmake/core/project/task.lua
parentbbed6a5a8a80437afbb57540d77418084aabd950 (diff)
parent3768a8200a7699e1531c07ee5ab490e7d4f27b11 (diff)
Merge branch 'dev' into installtest
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