summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/features.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-09-14 00:47:01 +0800
committerruki <[email protected]>2017-09-13 22:42:08 +0800
commitb27b6447c072d357db96d17500c73bf9013b8c5c (patch)
tree1b98278958f103fd68d6a5eb83a6e3bf269082ea /xmake/modules/lib/detect/features.lua
parent5e42ccae1391c717e35f2ae5abe2edc038696c59 (diff)
fix yield directory bug
Diffstat (limited to 'xmake/modules/lib/detect/features.lua')
-rw-r--r--xmake/modules/lib/detect/features.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/features.lua b/xmake/modules/lib/detect/features.lua
index 313212924..507b44f26 100644
--- a/xmake/modules/lib/detect/features.lua
+++ b/xmake/modules/lib/detect/features.lua
@@ -64,7 +64,9 @@ function main(name, opt)
local coroutine_running = coroutine.running()
if coroutine_running then
while _g._checking ~= nil and _g._checking == key do
+ local curdir = os.curdir()
coroutine.yield()
+ os.cd(curdir)
end
end