Skip to content

Commit

Permalink
Merge pull request #5909 from ifarbod/patch-1
Browse files Browse the repository at this point in the history
Obtain MinGW's path from LLVM_MINGW_DIR/ROOT
  • Loading branch information
waruqi authored Dec 1, 2024
2 parents 50f38ee + 04304b3 commit ee024dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmake/modules/detect/sdks/find_mingw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function _find_mingwdir(sdkdir)
sdkdir = "/opt/homebrew/opt/mingw-w64"
elseif is_host("linux") then
sdkdir = "/usr"
elseif is_subhost("msys") then
local mingw_prefix = os.getenv("MINGW_PREFIX")
else
local mingw_prefix = is_subhost("msys") and os.getenv("MINGW_PREFIX") or os.getenv("LLVM_MINGW_DIR") or os.getenv("LLVM_MINGW_ROOT")
if mingw_prefix and os.isdir(mingw_prefix) then
sdkdir = mingw_prefix
end
Expand Down

0 comments on commit ee024dc

Please sign in to comment.