From 112bd89dfd816cac735e447e41de0ff9c5687390 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 10 Jun 2015 14:57:51 +0800 Subject: remove wrap config for prober --- xmake/scripts/base/main.lua | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'xmake/scripts/base/main.lua') 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() -- cgit v1.3.1