diff options
| author | ruki <[email protected]> | 2016-02-28 14:14:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-28 14:14:25 +0800 |
| commit | 5c154ce0b281f073fb6c8e475e932837da0d5117 (patch) | |
| tree | b670dfe584762f397fe466be227b09d375b1ec90 /xmake/core/tools/make.lua | |
| parent | 9212146ac3d022a54f659d87fb0ecd7a7db2bee4 (diff) | |
hide _OPTIONS
Diffstat (limited to 'xmake/core/tools/make.lua')
| -rw-r--r-- | xmake/core/tools/make.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/xmake/core/tools/make.lua b/xmake/core/tools/make.lua index 568ddd2b4..74bd4a5f4 100644 --- a/xmake/core/tools/make.lua +++ b/xmake/core/tools/make.lua @@ -23,6 +23,7 @@ -- load modules local os = require("base/os") local utils = require("base/utils") +local option = require("base/option") -- define module: make local make = make or {} @@ -34,7 +35,7 @@ function make.init(self, name) self.name = name or "make" -- is verbose? - self._VERBOSE = utils.ifelse(xmake._OPTIONS.verbose, "-v", "") + self._VERBOSE = utils.ifelse(option.options().verbose, "-v", "") end @@ -43,9 +44,9 @@ function make.main(self, mkfile, target) -- enable jobs? local jobs = "" - if xmake._OPTIONS.jobs ~= nil then - if tonumber(xmake._OPTIONS.jobs) ~= 0 then - jobs = "-j" .. xmake._OPTIONS.jobs + if option.options().jobs ~= nil then + if tonumber(option.options().jobs) ~= 0 then + jobs = "-j" .. option.options().jobs else jobs = "-j" end |
