From 9d5658ade35f41bb2c8a348e4d835c52eb33cf5d Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 22 Dec 2021 12:44:19 +0800 Subject: Update toolchain.lua --- xmake/core/tool/toolchain.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index 3779d9297..782b004cd 100644 --- a/xmake/core/tool/toolchain.lua +++ b/xmake/core/tool/toolchain.lua @@ -131,7 +131,7 @@ function _instance:get(name) return value end - -- lazy loading platform + -- lazy loading toolchain self:_load() -- get other platform info @@ -185,6 +185,7 @@ end -- get the program and name of the given tool kind function _instance:tool(toolkind) -- ensure to do load for initializing toolset first + self:check() self:_load() local toolpaths = self:get("toolset." .. toolkind) if toolpaths then -- cgit v1.3.1