summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/sdks/find_cross_toolchain.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_cross_toolchain.lua b/xmake/modules/detect/sdks/find_cross_toolchain.lua
index 86fd829a1..9e4e851e0 100644
--- a/xmake/modules/detect/sdks/find_cross_toolchain.lua
+++ b/xmake/modules/detect/sdks/find_cross_toolchain.lua
@@ -35,7 +35,7 @@ function _find_bindir(sdkdir, opt)
-- attempt to find *-[gcc|clang|ld]
for _, toolname in ipairs({"gcc", "clang", "ld"}) do
- if is_plat("windows") then
+ if is_host("windows") then
toolname = toolname .. ".exe"
end
local toolpath = find_file((opt.cross or '*-') .. toolname, bindirs)