From 757ab49a3eb245163080dbc59f8f95f35ee47c9a Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 6 Mar 2020 23:07:39 +0800 Subject: improve to build objects --- xmake/modules/private/action/build/object.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/xmake/modules/private/action/build/object.lua b/xmake/modules/private/action/build/object.lua index c9dc5cbc8..f439f0f37 100644 --- a/xmake/modules/private/action/build/object.lua +++ b/xmake/modules/private/action/build/object.lua @@ -131,14 +131,7 @@ function main(target, sourcebatch, opt) local jobs = tonumber(option.get("jobs") or "4") -- run build jobs for each source file - local curdir = os.curdir() runjobs("build_objects", function (index) - - -- force to set the current directory first because the other jobs maybe changed it - os.cd(curdir) - - -- build object _build_object(target, sourcebatch, index, opt) - end, {total = #sourcebatch.sourcefiles, comax = jobs}) end -- cgit v1.3.1