diff options
Diffstat (limited to 'xmake/scripts/platform')
| -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 |
