summaryrefslogtreecommitdiff
path: root/xmake/core/project/task.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/project/task.lua')
-rw-r--r--xmake/core/project/task.lua12
1 files changed, 3 insertions, 9 deletions
diff --git a/xmake/core/project/task.lua b/xmake/core/project/task.lua
index 8e4fcb57d..d8a1150ad 100644
--- a/xmake/core/project/task.lua
+++ b/xmake/core/project/task.lua
@@ -267,27 +267,21 @@ function task.run(name)
-- get the task info
local taskinfo = tasks[name]
if not taskinfo then
-
- -- trace
utils.error("task(\"%s\"): unknown task", name)
return false
end
-- check
if not taskinfo.run then
-
- -- trace
utils.error("task(\"%s\"): no run script, please call on_task_run() first!", name)
return false
end
-- load global
- if not global.load() then
+ global.load()
- -- trace
- utils.error("load global configure failed!")
- return false
- end
+ -- load config
+ config.load()
-- run on_before, on_run, on_after
local ok = true