summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-06 23:07:39 +0800
committerruki <[email protected]>2020-03-06 12:45:55 +0800
commit757ab49a3eb245163080dbc59f8f95f35ee47c9a (patch)
treeffc62d1703a918b0e71b163dd078150e65dc378c
parent0152eb6ba443829ebd967e34b17354cb32e9678c (diff)
improve to build objects
-rw-r--r--xmake/modules/private/action/build/object.lua7
1 files changed, 0 insertions, 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