Skip to content

Commit

Permalink
Update find_mingw.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
c8ef authored Apr 27, 2024
1 parent e80ed6f commit 57a632a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xmake/modules/detect/sdks/find_mingw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

-- imports
import("lib.detect.find_path")
import("lib.detect.find_directory")
import("core.base.option")
import("core.base.global")
import("core.project.config")
Expand All @@ -37,8 +36,8 @@ function _find_mingwdir(sdkdir)
elseif is_host("macosx") and os.isdir("/usr/local/opt/mingw-w64") then
sdkdir = "/usr/local/opt/mingw-w64"
cprint("_find_mingwdir #2 %s", sdkdir)
elseif is_host("macosx") and os.isdir("/opt/homebrew/Cellar/mingw-w64") then
sdkdir = string.sub(find_directory("bin", "/opt/homebrew/Cellar/mingw-w64"), 1, -5)
elseif is_host("macosx") and os.isdir("/opt/homebrew/opt/mingw-w64") then
sdkdir = "/opt/homebrew/opt/mingw-w64"
cprint("_find_mingwdir #2 %s", sdkdir)
elseif is_host("linux") then
sdkdir = "/usr"
Expand Down

0 comments on commit 57a632a

Please sign in to comment.