diff options
| author | c8ef <[email protected]> | 2024-04-27 11:21:00 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-27 11:21:00 +0800 |
| commit | 7e2d8f87d4e1ea137d29ad264caae50ea8968d59 (patch) | |
| tree | 55bbbfde0834bd272a4f1295bb5ad866357aee61 /xmake/modules | |
| parent | 16684a7aef604c1dbf26a9d8d704d6ae57cbd82d (diff) | |
Update find_mingw.lua
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/detect/sdks/find_mingw.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua index 1cd2c7e0d..1959c632d 100644 --- a/xmake/modules/detect/sdks/find_mingw.lua +++ b/xmake/modules/detect/sdks/find_mingw.lua @@ -37,7 +37,7 @@ function _find_mingwdir(sdkdir) 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) + sdkdir = string.sub(find_path("bin", "/opt/homebrew/Cellar/mingw-w64"), 1, -5) cprint("_find_mingwdir #2 %s", sdkdir) elseif is_host("linux") then sdkdir = "/usr" |
