diff options
| author | c8ef <[email protected]> | 2024-04-27 09:00:38 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-27 09:00:38 +0800 |
| commit | f75bba94279da494cbc84a0877af2ee6a1576a03 (patch) | |
| tree | 3d87ba353a394e5425886bbeedfe1b6ef9c5de18 | |
| parent | cf42445dd5dce09224ee1bfa28f2925ce50d7eeb (diff) | |
Update find_mingw.lua
| -rw-r--r-- | xmake/modules/detect/sdks/find_mingw.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua index 69b6a1df9..cdfef677c 100644 --- a/xmake/modules/detect/sdks/find_mingw.lua +++ b/xmake/modules/detect/sdks/find_mingw.lua @@ -28,13 +28,14 @@ import("detect.sdks.find_cross_toolchain") -- find mingw directory function _find_mingwdir(sdkdir) - + cprint("_find_mingwdir #1 %s", sdkdir) -- get mingw directory if not sdkdir then 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 sdkdir = "/usr/local/opt/mingw-w64" + cprint("_find_mingwdir #2 %s", sdkdir) elseif is_host("linux") then sdkdir = "/usr" elseif is_subhost("msys") then @@ -78,6 +79,7 @@ function _find_mingw(sdkdir, bindir, cross) -- find mingw root directory sdkdir = _find_mingwdir(sdkdir) + cprint("_find_mingw #1 %s", sdkdir) if not sdkdir then return end |
