Skip to content

Commit

Permalink
Update find_mingw.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 22, 2021
1 parent 85283fa commit 3a8aab0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xmake/modules/detect/sdks/find_mingw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ function _find_mingw(sdkdir, bindir, cross)

-- 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
toolchain = find_cross_toolchain(sdkdir or bindir, {bindir = bindir})
end
if toolchain then
return {sdkdir = toolchain.sdkdir, bindir = toolchain.bindir, cross = toolchain.cross}
end
Expand Down

0 comments on commit 3a8aab0

Please sign in to comment.