summaryrefslogtreecommitdiff
path: root/xmake/core/base/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-15 10:38:51 +0800
committerGitHub <[email protected]>2026-08-15 10:38:51 +0800
commite4314dc3b2f483ef97b397ed5cf11fcdd397c9a0 (patch)
treea28db860b0f7af1a5a66bf2ed29c87126a29324a /xmake/core/base/task.lua
parent6c246c12a09524780e5bfdc53bc27a892e4793a9 (diff)
parent045ce8a7a62e38357af0fd250675f279f14beafe (diff)
Merge pull request #7702 from xmake-io/preload
Auto fetch addons
Diffstat (limited to 'xmake/core/base/task.lua')
-rw-r--r--xmake/core/base/task.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua
index a901490eb..2cd1fa58a 100644
--- a/xmake/core/base/task.lua
+++ b/xmake/core/base/task.lua
@@ -426,6 +426,12 @@ function task._is_conflicting(taskname, taskfile, filepath)
return true
end
+-- clear the loaded tasks, e.g. some addons may be installed just now
+function task.clear()
+ task._TASKS = nil
+ task._DIRECTORIES = nil
+end
+
-- get all registered tasks
--
-- @return the tasks table {name = task, ...}