diff options
| author | c8ef <[email protected]> | 2024-04-27 11:33:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-27 11:33:38 +0800 |
| commit | 57a632aa1501799d5f199a2cf06e27b28ae686b1 (patch) | |
| tree | a6b26d087f7b7624d95a82eaa12eab0146b1867d | |
| parent | e80ed6f4ca41149382d24d2be1706ea5705b5e42 (diff) | |
Update find_mingw.lua
| -rw-r--r-- | xmake/modules/detect/sdks/find_mingw.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua index fd03b2fc0..b5eca3d5d 100644 --- a/xmake/modules/detect/sdks/find_mingw.lua +++ b/xmake/modules/detect/sdks/find_mingw.lua @@ -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") @@ -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" |
