diff options
| author | ruki <[email protected]> | 2019-09-09 22:37:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-09 09:46:38 +0800 |
| commit | dfef68b97a0e1927a484071d7a36df5888a910e0 (patch) | |
| tree | ad4b306f88ac398444e1d1c288d603d7cf22f5c3 /xmake/rules | |
| parent | e88ce58b5bc08fbba8ce9c66d849104c3b6945c5 (diff) | |
improve qt app for mingw
Diffstat (limited to 'xmake/rules')
| -rw-r--r-- | xmake/rules/qt/load.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/rules/qt/load.lua b/xmake/rules/qt/load.lua index 1246c5c3e..329aaa447 100644 --- a/xmake/rules/qt/load.lua +++ b/xmake/rules/qt/load.lua @@ -232,11 +232,8 @@ function main(target, opt) -- is gui application? if opt.gui then -- add -subsystem:windows for windows platform - if is_plat("windows") then - target:add("defines", "_WINDOWS") + if is_plat("windows", "mingw") then target:add("ldflags", "-subsystem:windows", "-entry:mainCRTStartup", {force = true}) - elseif is_plat("mingw") then - target:add("ldflags", "-Wl,-subsystem:windows", {force = true}) end end |
