diff options
| author | ruki <[email protected]> | 2017-09-14 00:47:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-13 22:42:08 +0800 |
| commit | b27b6447c072d357db96d17500c73bf9013b8c5c (patch) | |
| tree | 1b98278958f103fd68d6a5eb83a6e3bf269082ea /xmake/modules/lib/detect/has_flags.lua | |
| parent | 5e42ccae1391c717e35f2ae5abe2edc038696c59 (diff) | |
fix yield directory bug
Diffstat (limited to 'xmake/modules/lib/detect/has_flags.lua')
| -rw-r--r-- | xmake/modules/lib/detect/has_flags.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/has_flags.lua b/xmake/modules/lib/detect/has_flags.lua index adf2c4adb..0957d554e 100644 --- a/xmake/modules/lib/detect/has_flags.lua +++ b/xmake/modules/lib/detect/has_flags.lua @@ -90,7 +90,9 @@ function main(name, flags, 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 |
