diff options
| author | ruki <[email protected]> | 2015-05-20 08:50:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-05-20 08:50:04 +0800 |
| commit | 9c161e7f113de8c020df176c1fab87e8c93083f5 (patch) | |
| tree | 3946ab2b828aa9365619eb07ed0d51b6f1fd721d /xmake/scripts/platform/platform.lua | |
| parent | bf3130929b7cf628dad0300a835e13c7bb91feb0 (diff) | |
make config for the current target
Diffstat (limited to 'xmake/scripts/platform/platform.lua')
| -rw-r--r-- | xmake/scripts/platform/platform.lua | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua index 6ee8de802..e6c369236 100644 --- a/xmake/scripts/platform/platform.lua +++ b/xmake/scripts/platform/platform.lua @@ -34,18 +34,8 @@ function platform.init() platform._CONFIGS = platform._CONFIGS or {} local configs = platform._CONFIGS - -- get target - local target = config.target() - assert(target) - - -- init configs - configs.plat = target.plat - configs.host = target.host - configs.arch = target.arch - configs.mode = target.mode - -- load platform - local p = require("platform/_" .. target.plat) + local p = require("platform/_" .. config.get("plat")) if not p then return false end |
