From dfef2f8ca41884138c5105cc7cbf55a67510f54d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 6 Feb 2020 00:54:46 +0800 Subject: fix curdir for scheduler --- xmake/actions/require/impl/package.lua | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xmake/actions/require/impl/package.lua') diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua index 6afb7b876..acbbcb193 100644 --- a/xmake/actions/require/impl/package.lua +++ b/xmake/actions/require/impl/package.lua @@ -577,9 +577,7 @@ function _install_packages(packages_install, packages_download) end end if package == nil and #packages_pending > 0 then - local curdir = os.curdir() scheduler.co_yield() - os.cd(curdir) end end if package then @@ -594,9 +592,7 @@ function _install_packages(packages_install, packages_download) end if not parallelize then while installing_count > 0 do - local curdir = os.curdir() scheduler.co_yield() - os.cd(curdir) end end installing_count = installing_count + 1 -- cgit v1.3.1