From c3d983ef336403e8fe2ad0d29e2e3073e733a93e Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 19 Dec 2018 00:43:10 +0800 Subject: fix load platform bug --- xmake/core/platform/platform.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index fbb4dd299..2a9c35c6b 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -94,22 +94,23 @@ end -- get the platform os function _instance:os() - return self:get("os") + return self._INFO.os end -- get the platform menu function _instance:menu() - return self:get("menu") + -- @note do not use self:get("menu") to avoid loading platform early + return self._INFO.menu end -- get the platform hosts function _instance:hosts() - return self:get("hosts") + return self._INFO.hosts end -- get the platform archs function _instance:archs() - return self:get("archs") + return self._INFO.archs end -- the directories of platform -- cgit v1.3.1