diff options
| author | ruki <[email protected]> | 2026-08-15 10:38:51 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-15 10:38:51 +0800 |
| commit | e4314dc3b2f483ef97b397ed5cf11fcdd397c9a0 (patch) | |
| tree | a28db860b0f7af1a5a66bf2ed29c87126a29324a /xmake/core/base/task.lua | |
| parent | 6c246c12a09524780e5bfdc53bc27a892e4793a9 (diff) | |
| parent | 045ce8a7a62e38357af0fd250675f279f14beafe (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.lua | 6 |
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, ...} |
