diff options
| author | ruki <[email protected]> | 2020-11-18 00:02:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-18 00:02:42 +0800 |
| commit | 37933e44724b9f7cdd9f78b1524ccbe55dd88844 (patch) | |
| tree | 61fb7050e1a0bd7e2d3323e034f9d6c606e0aa19 | |
| parent | a16354dba704b4a7613eae406812db72cfcf2bd5 (diff) | |
improve find_mingw
| -rw-r--r-- | xmake/modules/detect/sdks/find_mingw.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua index 777ad3b6a..ef8e69b79 100644 --- a/xmake/modules/detect/sdks/find_mingw.lua +++ b/xmake/modules/detect/sdks/find_mingw.lua @@ -82,13 +82,13 @@ function _find_mingw(sdkdir, bindir, cross) -- select cross on macOS, e.g x86_64-w64-mingw32- or i686-w64-mingw32- if not cross then if is_arch("i386", "x86", "i686") then - cross = "i686-*-" + cross = "i686-w64-mingw32-" elseif is_arch("arm64", "aarch64") then - cross = "aarch64-*-" -- for llvm-mingw + cross = "aarch64-w64-mingw32-" -- for llvm-mingw elseif is_arch("arm.*") then - cross = "armv7-*-" -- for llvm-mingw + cross = "armv7-w64-mingw32-" -- for llvm-mingw else - cross = "x86_64-*-" + cross = "x86_64-w64-mingw32-" end end |
