summaryrefslogtreecommitdiff
path: root/xmake/rules
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-09 22:37:46 +0800
committerruki <[email protected]>2019-09-09 09:46:38 +0800
commitdfef68b97a0e1927a484071d7a36df5888a910e0 (patch)
treead4b306f88ac398444e1d1c288d603d7cf22f5c3 /xmake/rules
parente88ce58b5bc08fbba8ce9c66d849104c3b6945c5 (diff)
improve qt app for mingw
Diffstat (limited to 'xmake/rules')
-rw-r--r--xmake/rules/qt/load.lua5
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