summaryrefslogtreecommitdiff
path: root/xmake/core
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-22 12:44:19 +0800
committerGitHub <[email protected]>2021-12-22 12:44:19 +0800
commit9d5658ade35f41bb2c8a348e4d835c52eb33cf5d (patch)
treed600273754f57a9024a05edaa0d23007513fc776 /xmake/core
parent32cb3e689bdfa82a9f37488062b35625a3a3ba57 (diff)
Update toolchain.lua
Diffstat (limited to 'xmake/core')
-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