diff options
| author | ruki <[email protected]> | 2019-09-09 10:28:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-09 10:28:37 +0800 |
| commit | f8c54c190b2f422dee103bae4e0d11b50094b481 (patch) | |
| tree | 5360f0bf1177a067298f78332c24ab05d074f26d | |
| parent | dfef68b97a0e1927a484071d7a36df5888a910e0 (diff) | |
Update load.lua
| -rw-r--r-- | xmake/rules/qt/load.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/rules/qt/load.lua b/xmake/rules/qt/load.lua index 329aaa447..03ebf0402 100644 --- a/xmake/rules/qt/load.lua +++ b/xmake/rules/qt/load.lua @@ -232,8 +232,11 @@ function main(target, opt) -- is gui application? if opt.gui then -- add -subsystem:windows for windows platform - if is_plat("windows", "mingw") then + if is_plat("windows") then + target:add("defines", "_WINDOWS") target:add("ldflags", "-subsystem:windows", "-entry:mainCRTStartup", {force = true}) + elseif is_plat("mingw") then + target:add("ldflags", "-Wl,-subsystem:windows", "-Wl,-entry:mainCRTStartup", {force = true}) end end |
