summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-30 21:20:38 +0800
committerruki <[email protected]>2021-01-30 21:20:38 +0800
commit28f106acf8d071049b8615ff19616d4a8be7fbe3 (patch)
treec1f4b6fdb94ed22cdf405175e5a81cdcfecb3de0
parent9546de4d7239274053ac67486e5baa8b7ef7aab4 (diff)
fix update
-rw-r--r--xmake/core/main.lua2
-rw-r--r--xmake/core/sandbox/modules/import/core/base/task.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua
index ec7d9b222..fb4de9570 100644
--- a/xmake/core/main.lua
+++ b/xmake/core/main.lua
@@ -281,7 +281,7 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily.
-- get task instance
local taskname = option.taskname() or "build"
- local taskinst = project.task(taskname) or task.task(taskname)
+ local taskinst = task.task(taskname) or project.task(taskname)
if not taskinst then
return main._exit(string.format("do unknown task(%s)!", taskname))
end
diff --git a/xmake/core/sandbox/modules/import/core/base/task.lua b/xmake/core/sandbox/modules/import/core/base/task.lua
index 711ee09fd..8b055aac5 100644
--- a/xmake/core/sandbox/modules/import/core/base/task.lua
+++ b/xmake/core/sandbox/modules/import/core/base/task.lua
@@ -54,7 +54,7 @@ function sandbox_core_base_task.run(taskname, options, ...)
-- get task instance
local taskname = option.taskname() or "build"
- local taskinst = project.task(taskname) or task.task(taskname)
+ local taskinst = task.task(taskname) or project.task(taskname)
if not taskinst then
raise("do unknown task(%s)!", taskname)
end