diff options
| author | ruki <[email protected]> | 2020-02-05 00:39:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-07 22:45:56 +0800 |
| commit | 35b8b34362abe28a638af8ee02d3babe8e3548e2 (patch) | |
| tree | a47c0a1da53fffd81f0aa7832ceb3646950bd08a /xmake/modules/lib/detect/features.lua | |
| parent | 94d3eb649e489a597a2f5d966d2249a9e64d87e3 (diff) | |
uses new runjobs
Diffstat (limited to 'xmake/modules/lib/detect/features.lua')
| -rw-r--r-- | xmake/modules/lib/detect/features.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/features.lua b/xmake/modules/lib/detect/features.lua index e07c89923..60799c667 100644 --- a/xmake/modules/lib/detect/features.lua +++ b/xmake/modules/lib/detect/features.lua @@ -20,6 +20,7 @@ -- imports import("lib.detect.find_tool") +import("core.base.scheduler") -- get all features of the current tool -- @@ -57,11 +58,11 @@ function main(name, opt) local results = _g._RESULTS -- @note avoid detect the same program in the same time if running in the coroutine (e.g. ccache) - local coroutine_running = coroutine.running() + local coroutine_running = scheduler.co_running() if coroutine_running then while _g._checking ~= nil and _g._checking == key do local curdir = os.curdir() - coroutine.yield() + scheduler.co_yield() os.cd(curdir) end end |
