summaryrefslogtreecommitdiff
path: root/xmake/core/base/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-04-10 00:28:08 +0800
committerruki <[email protected]>2018-04-09 20:48:49 +0800
commitc59a2f071f53f88516bb487e5bcef37d027ecc43 (patch)
treebacfbce0d6c8ea5c791800fe17184626ebcdad19 /xmake/core/base/task.lua
parentfe78a523930b02f1e75c4490cdbae045d43d4f1a (diff)
add qt_console rule
Diffstat (limited to 'xmake/core/base/task.lua')
-rw-r--r--xmake/core/base/task.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua
index 7288f966f..b8b7d6dc2 100644
--- a/xmake/core/base/task.lua
+++ b/xmake/core/base/task.lua
@@ -372,10 +372,10 @@ function task.tasks()
if files then
for _, filepath in ipairs(files) do
- -- load tasks
+ -- load task
local results, errors = task._load(filepath)
- -- save tasks
+ -- save task
if results then
table.join2(tasks, results)
else
@@ -389,11 +389,8 @@ function task.tasks()
local projectasks, errors = project.tasks()
if projectasks then
- -- the project interpreter
- local interp = errors
-
-- bind tasks for menu with an sandbox instance
- local ok, errors = task._bind(projectasks, interp)
+ local ok, errors = task._bind(projectasks, project.interpreter())
if not ok then
return nil, errors
end