From a447a635a1ee38bc210b4d8d418479f0da3ecc9c Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 28 May 2020 22:42:06 +0800 Subject: fix find_cross_toolchain --- xmake/modules/detect/sdks/find_cross_toolchain.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.3.1