From b6bfa0946bc0dc9a705376ee32ae3b46f63b8098 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 15 Mar 2020 17:01:42 +0800 Subject: fix find_mingw --- xmake/modules/detect/sdks/find_mingw.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/detect/sdks/find_mingw.lua b/xmake/modules/detect/sdks/find_mingw.lua index f6474536e..a8c22a9ee 100644 --- a/xmake/modules/detect/sdks/find_mingw.lua +++ b/xmake/modules/detect/sdks/find_mingw.lua @@ -38,7 +38,7 @@ function _find_mingwdir(sdkdir) -- attempt to find mingw directory from the qt sdk local qt = config.get("qt") - if not sdkdir or qt then + if not sdkdir and qt then sdkdir = find_path("bin", path.join(qt, "Tools", "mingw*_" .. (is_arch("x86_64") and "64" or "32"))) end -- cgit v1.3.1