summaryrefslogtreecommitdiff
path: root/xmake/core/base/task.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/task.lua')
-rw-r--r--xmake/core/base/task.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua
index cda0c3356..d58844862 100644
--- a/xmake/core/base/task.lua
+++ b/xmake/core/base/task.lua
@@ -80,7 +80,8 @@ function task._interpreter()
-- init maps
local maps =
{
- host = xmake._HOST
+ host = xmake._HOST
+ , globaldir = global.directory()
}
-- map it
@@ -273,6 +274,14 @@ function task.run(name)
return false
end
+ -- load global
+ if not global.load() then
+
+ -- trace
+ utils.error("load global configure failed!")
+ return false
+ end
+
-- run on_before, on_run, on_after
local ok = true
local on_scripts = {taskinfo.before, taskinfo.run, taskinfo.after}