summaryrefslogtreecommitdiff
path: root/xmake/core/platform/tools/make.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/platform/tools/make.lua')
-rw-r--r--xmake/core/platform/tools/make.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/xmake/core/platform/tools/make.lua b/xmake/core/platform/tools/make.lua
index c4ca73de8..dc9681277 100644
--- a/xmake/core/platform/tools/make.lua
+++ b/xmake/core/platform/tools/make.lua
@@ -40,16 +40,17 @@ function make.init(self, name)
end
-- the main function
-function make.main(self, makefile, target)
+function make.main(self, makefile, target, jobs)
-- enable jobs?
- local jobs = ""
- if option.get("jobs") ~= nil then
- if tonumber(option.get("jobs")) ~= 0 then
- jobs = "-j" .. option.get("jobs")
+ if jobs ~= nil then
+ if tonumber(jobs) ~= 0 then
+ jobs = "-j" .. jobs
else
jobs = "-j"
end
+ else
+ jobs = ""
end
-- make command