fix mingw link to Qt library by mode debug
on plat windows Qt library debug mode suffix is `d`, will mingw use default suffix `_debug`.
Add plat test for mingw, set debug mode suffix to `d`.
@@ -28,6 +28,8 @@ function _link(framework, major)
local debug_suffix = "_debug"
if is_plat("windows") then
debug_suffix = "d"
+ elseif is_plat("mingw") then
+ debug_suffix = "d"
elseif is_plat("android") then
debug_suffix = ""
end
@@ -42,6 +44,8 @@ function _find_static_links(linkdirs, libpattern)
local debug_suffix = "_debug"
if is_plat("windows") then
debug_suffix = "d"
+ elseif is_plat("mingw") then
+ debug_suffix = "d"
elseif is_plat("android") then
debug_suffix = ""
end
