summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc8ef <[email protected]>2024-04-27 10:36:55 +0800
committerGitHub <[email protected]>2024-04-27 10:36:55 +0800
commit4989b6b9fa31e5235e7bf7a318a4bc32952289ea (patch)
tree0dd1f81f4e97c30bfb77de766aaff775b69a003b
parentf75bba94279da494cbc84a0877af2ee6a1576a03 (diff)
Update find_mingw.lua
-rw-r--r--xmake/modules/detect/sdks/find_mingw.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua
index cdfef677c..cd4c7e85f 100644
--- a/xmake/modules/detect/sdks/find_mingw.lua
+++ b/xmake/modules/detect/sdks/find_mingw.lua
@@ -36,6 +36,9 @@ 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 = "/opt/homebrew/Cellar/mingw-w64"
+ cprint("_find_mingwdir #2 %s", sdkdir)
elseif is_host("linux") then
sdkdir = "/usr"
elseif is_subhost("msys") then