summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-11 22:59:06 +0800
committerruki <[email protected]>2019-06-11 11:57:40 +0800
commit3922367dec058b680fabc41f32e9b507822abe2b (patch)
treebfcef2835359b3659c8ce6a845a4e9f32bf751b7 /core/src
parenta9791390a0e48a16aab06136129f586a26a69bdc (diff)
improve xp mode
Diffstat (limited to 'core/src')
-rw-r--r--core/src/demo/xmake.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/demo/xmake.lua b/core/src/demo/xmake.lua
index ea6f6765e..bd8e1d230 100644
--- a/core/src/demo/xmake.lua
+++ b/core/src/demo/xmake.lua
@@ -39,7 +39,13 @@ target("demo")
end
-- enable xp compatibility mode
- add_ldflags("/subsystem:console,\"5.01\"")
+ if is_plat("windows") then
+ if is_arch("x86") then
+ add_ldflags("/subsystem:console,\"5.01\"")
+ else
+ add_ldflags("/subsystem:console,\"5.02\"")
+ end
+ end
-- copy target to the build directory
after_build(function (target)