summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-05 22:44:04 +0800
committerruki <[email protected]>2024-09-05 22:44:04 +0800
commitfe2154b72498d1f2b6fcdbb143f8b794c49b77cc (patch)
tree1ce65464229f93d72ad6ce9978c93c66c1758316
parentf328bb0d518540b72a8289d002718e1baaa8b840 (diff)
add warn for loading toolchain
-rw-r--r--xmake/core/tool/toolchain.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index 1c9e332b2..b61852d42 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -360,6 +360,9 @@ end
-- do load, @note we need to load it repeatly for each architectures
function _instance:_load()
+ if not self:_is_checked() then
+ utils.warning("we cannot load toolchain(%s), because it has been not checked yet!", self:name(), self:plat(), self:arch())
+ end
local info = self:info()
if not info:get("__loaded") and not info:get("__loading") then
local on_load = self:_on_load()