summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-28 22:42:06 +0800
committerruki <[email protected]>2020-05-28 10:12:39 +0800
commita447a635a1ee38bc210b4d8d418479f0da3ecc9c (patch)
tree8eaa807482d098b18bddcc1eaa550ff42e1529b7
parent47d525d872a5f3a05f7ae54bb4be12b0dbb6ede0 (diff)
fix find_cross_toolchain
-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)