diff options
| author | conlay <[email protected]> | 2020-03-11 09:47:18 +0800 |
|---|---|---|
| committer | conlay <[email protected]> | 2020-03-11 09:47:18 +0800 |
| commit | 3b0f6e396c4a1d53b1b046c416681da6229fbdce (patch) | |
| tree | 3eaa0cb3f275fa174cc1f851c8a355fe5f95d244 | |
| parent | acca2c3115570e7f3b1ef059413c4dce49c520d1 (diff) | |
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`.
| -rw-r--r-- | xmake/rules/qt/load.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/rules/qt/load.lua b/xmake/rules/qt/load.lua index 23bc95090..2dfda2200 100644 --- a/xmake/rules/qt/load.lua +++ b/xmake/rules/qt/load.lua @@ -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 |
