Skip to content

Commit

Permalink
Merge pull request #5019 from c8ef/dev
Browse files Browse the repository at this point in the history
MacOS Arm MinGW toolchain fix
  • Loading branch information
waruqi committed Apr 27, 2024
2 parents cf42445 + dcfffe4 commit eab39cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xmake/modules/detect/sdks/find_mingw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ function _find_mingwdir(sdkdir)
if is_host("macosx", "linux") and os.isdir("/opt/llvm-mingw") then
sdkdir = "/opt/llvm-mingw"
elseif is_host("macosx") and os.isdir("/usr/local/opt/mingw-w64") then
-- for macOS Intel
sdkdir = "/usr/local/opt/mingw-w64"
elseif is_host("macosx") and os.isdir("/opt/homebrew/opt/mingw-w64") then
-- for Apple Silicon
sdkdir = "/opt/homebrew/opt/mingw-w64"
elseif is_host("linux") then
sdkdir = "/usr"
elseif is_subhost("msys") then
Expand Down

0 comments on commit eab39cd

Please sign in to comment.