diff options
| author | ruki <[email protected]> | 2015-06-10 14:57:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-10 14:57:56 +0800 |
| commit | 112bd89dfd816cac735e447e41de0ff9c5687390 (patch) | |
| tree | 64cb4a58b97e4ed2f60c5a77c8b54368887c6559 /xmake/scripts/base | |
| parent | 5621d811df57824463d48c41c8a9ffa26864d293 (diff) | |
remove wrap config for prober
Diffstat (limited to 'xmake/scripts/base')
| -rw-r--r-- | xmake/scripts/base/main.lua | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/xmake/scripts/base/main.lua b/xmake/scripts/base/main.lua index a46c3ea81..8fed356c2 100644 --- a/xmake/scripts/base/main.lua +++ b/xmake/scripts/base/main.lua @@ -99,20 +99,8 @@ function main._prepare_global() -- xmake global? if options._ACTION == "global" then - -- wrap the global configure for more convenient to get and set values - local global_wrapped = {} - setmetatable(global_wrapped, - { - __index = function(tbl, key) - return global.get(key) - end, - __newindex = function(tbl, key, val) - global.set(key, val) - end - }) - -- probe the global platform configure - platform.probe(global_wrapped, true) + platform.probe(true) -- clear up the global configure global.clearup() @@ -141,20 +129,8 @@ function main._prepare_project() -- xmake config or marked as "reconfig"? if options._ACTION == "config" or config._RECONFIG then - -- wrap the configure for more convenient to get and set values - local config_wrapped = {} - setmetatable(config_wrapped, - { - __index = function(tbl, key) - return config.get(key) - end, - __newindex = function(tbl, key, val) - config.set(key, val) - end - }) - -- probe the current platform configure - platform.probe(config_wrapped, false) + platform.probe(false) -- clear up the configure config.clearup() |
