summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorKaoru <[email protected]>2024-04-27 15:22:31 +0800
committerGitHub <[email protected]>2024-04-27 15:22:31 +0800
commit598eff281e20c79d231e59db2bd91497bfce520e (patch)
tree9bde81ba505ca667646b2c962556eb10baa7c767 /xmake/modules
parent835f9195e1c528f2644b9ddd0f6b9c6def710f44 (diff)
parenteab39cddb2fef56e3c5e716ff0bcb9c9b3a5bc3a (diff)
Merge branch 'xmake-io:master' into master
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/detect/sdks/find_mingw.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua
index 69b6a1df9..4085a6cb8 100644
--- a/xmake/modules/detect/sdks/find_mingw.lua
+++ b/xmake/modules/detect/sdks/find_mingw.lua
@@ -34,7 +34,11 @@ function _find_mingwdir(sdkdir)
if is_host("macosx", "linux") and os.isdir("/opt/llvm-mingw") then
sdkdir = "/opt/llvm-mingw"
elseif is_host("macosx") and os.isdir("/usr/local/opt/mingw-w64") then
+ -- for macOS Intel
sdkdir = "/usr/local/opt/mingw-w64"
+ elseif is_host("macosx") and os.isdir("/opt/homebrew/opt/mingw-w64") then
+ -- for Apple Silicon
+ sdkdir = "/opt/homebrew/opt/mingw-w64"
elseif is_host("linux") then
sdkdir = "/usr"
elseif is_subhost("msys") then