summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/tool/toolchain.lua3
1 files changed, 2 insertions, 1 deletions
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