summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-01 11:06:53 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-01 11:06:53 +0200
commit9207811ed5b46039e8d5754ce7fa524eff214026 (patch)
treef36c74c6ea2286679ad1786c469306754cb3fee9 /scripts/genie.lua
parent42ffb726fa065a16206a355b9462f90ac2694f10 (diff)
fix it properly (nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 2ea08108b7f..9a35746c218 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -239,7 +239,6 @@ language "C++"
flags {
"StaticRuntime",
- "Unicode",
"NoPCH",
}
@@ -328,11 +327,24 @@ dofile ("toolchain.lua")
if _OPTIONS["targetos"]=="windows" then
+ configuration { "mingw*" }
+ linkoptions {
+ "-municode",
+ }
+ configuration { "vs*" }
+ flags {
+ "Unicode",
+ }
configuration { "x64" }
defines {
"X64_WINDOWS_ABI",
}
configuration { }
+ defines {
+ "UNICODE",
+ "_UNICODE",
+ "main=utf8_main",
+ }
end
-- Avoid error when invoking genie --help.