summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/features.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-06 00:54:46 +0800
committerruki <[email protected]>2020-02-07 22:45:57 +0800
commitdfef2f8ca41884138c5105cc7cbf55a67510f54d (patch)
tree0b3f363f7a8758b9a1c6ec6f8650cd9e45f20a95 /xmake/modules/lib/detect/features.lua
parentd40841b322485ec4200a857979b2ea77677a906a (diff)
fix curdir for scheduler
Diffstat (limited to 'xmake/modules/lib/detect/features.lua')
-rw-r--r--xmake/modules/lib/detect/features.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/features.lua b/xmake/modules/lib/detect/features.lua
index 60799c667..048ee85a6 100644
--- a/xmake/modules/lib/detect/features.lua
+++ b/xmake/modules/lib/detect/features.lua
@@ -61,9 +61,7 @@ function main(name, opt)
local coroutine_running = scheduler.co_running()
if coroutine_running then
while _g._checking ~= nil and _g._checking == key do
- local curdir = os.curdir()
scheduler.co_yield()
- os.cd(curdir)
end
end