From 4989b6b9fa31e5235e7bf7a318a4bc32952289ea Mon Sep 17 00:00:00 2001 From: c8ef Date: Sat, 27 Apr 2024 10:36:55 +0800 Subject: Update find_mingw.lua --- xmake/modules/detect/sdks/find_mingw.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1