summaryrefslogtreecommitdiff
path: root/xmake/core/tool/toolchain.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-21 00:56:56 +0800
committerruki <[email protected]>2024-09-23 09:43:53 +0800
commit7af1ca50e38a7cf21048be7a62bd30103421cceb (patch)
treeaeb13deca5fcab0a43554fe120d3091a52e5637c /xmake/core/tool/toolchain.lua
parent4fd8d5eec226060ee62b24c56ae4e303d4ededba (diff)
fix host toolchain
Diffstat (limited to 'xmake/core/tool/toolchain.lua')
-rw-r--r--xmake/core/tool/toolchain.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index ce6b834a6..a8c4e514a 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -167,7 +167,7 @@ end
function _instance:is_cross()
if self:kind() == "cross" then
return true
- elseif self:kind() == "standalone" and (self:cross() or self:sdkdir()) then
+ elseif self:kind() == "standalone" and (self:cross() or self:config("sdkdir") or self:info():get("sdkdir")) then
return true
end
end