summaryrefslogtreecommitdiff
path: root/xmake/core/tools/make.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-28 14:20:16 +0800
committerruki <[email protected]>2016-02-28 14:20:16 +0800
commit95860a08bd483a3f900ea15ba30c69faa60e01e8 (patch)
tree7358ffdef1f24263cb4d9b3189c49e2ba390c758 /xmake/core/tools/make.lua
parent5c154ce0b281f073fb6c8e475e932837da0d5117 (diff)
hide verbose for options
Diffstat (limited to 'xmake/core/tools/make.lua')
-rw-r--r--xmake/core/tools/make.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/tools/make.lua b/xmake/core/tools/make.lua
index 74bd4a5f4..c6664fd69 100644
--- a/xmake/core/tools/make.lua
+++ b/xmake/core/tools/make.lua
@@ -35,7 +35,7 @@ function make.init(self, name)
self.name = name or "make"
-- is verbose?
- self._VERBOSE = utils.ifelse(option.options().verbose, "-v", "")
+ self._VERBOSE = utils.ifelse(option.get("verbose"), "-v", "")
end
@@ -44,9 +44,9 @@ function make.main(self, mkfile, target)
-- enable jobs?
local jobs = ""
- if option.options().jobs ~= nil then
- if tonumber(option.options().jobs) ~= 0 then
- jobs = "-j" .. option.options().jobs
+ if option.get("jobs") ~= nil then
+ if tonumber(option.get("jobs")) ~= 0 then
+ jobs = "-j" .. option.get("jobs")
else
jobs = "-j"
end