summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-24 23:02:06 +0800
committerGitHub <[email protected]>2026-08-24 23:02:06 +0800
commit37047133c25656d03d8654028bef5a3b445b2b17 (patch)
treed5458e39fe04eb00333cdd950eacfe03355176cd /xmake/modules
parentd38052166362f81792c1df01538a85dfc36a46ff (diff)
parent58983968519544cef4b4cebc08054c3843ba5a55 (diff)
Merge pull request #7726 from damster101/patch1
Improve MinGW toolchain support for Clang and libc++
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/sdks/find_mingw.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua
index c70bebb11..d6d7e0d8e 100644
--- a/xmake/modules/detect/sdks/find_mingw.lua
+++ b/xmake/modules/detect/sdks/find_mingw.lua
@@ -108,7 +108,8 @@ function _find_mingw(sdkdir, opt)
-- find cross toolchain
local toolchain = find_cross_toolchain(sdkdir or bindir, {bindir = bindir, cross = cross})
- if not toolchain then -- fallback, e.g. gcc.exe without cross
+ -- fallback, e.g. gcc.exe without cross
+ if not toolchain and (is_host("windows") or is_subhost("msys", "cygwin")) then
toolchain = find_cross_toolchain(sdkdir or bindir, {bindir = bindir})
end
if toolchain then