summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc8ef <[email protected]>2024-04-27 11:15:47 +0800
committerGitHub <[email protected]>2024-04-27 11:15:47 +0800
commit16684a7aef604c1dbf26a9d8d704d6ae57cbd82d (patch)
treee9d32b42be6a507febc4cc607f7234af3375b8c6
parent4989b6b9fa31e5235e7bf7a318a4bc32952289ea (diff)
Update find_mingw.lua
-rw-r--r--xmake/modules/detect/sdks/find_mingw.lua2
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 cd4c7e85f..1cd2c7e0d 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 = "/opt/homebrew/Cellar/mingw-w64"
+ sdkdir = string.sub(find_directory("bin", "/opt/homebrew/Cellar/mingw-w64"), 1, -5)
cprint("_find_mingwdir #2 %s", sdkdir)
elseif is_host("linux") then
sdkdir = "/usr"