diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua index 9a1f2425334..4085a6cb848 100644 --- a/xmake/modules/detect/sdks/find_mingw.lua +++ b/xmake/modules/detect/sdks/find_mingw.lua @@ -28,6 +28,7 @@ import("detect.sdks.find_cross_toolchain") -- find mingw directory function _find_mingwdir(sdkdir) + -- get mingw directory if not sdkdir then if is_host("macosx", "linux") and os.isdir("/opt/llvm-mingw") then