aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorDmytro Ivanov <[email protected]>2024-10-01 12:36:14 +0200
committerGitHub Enterprise <[email protected]>2024-10-01 12:36:14 +0200
commit587e0f1398ac1f4866ab46d232955afa33d956a0 (patch)
tree5c3b22d35135d9dff27a47e86b3c1f322af1d5b7 /xmake.lua
parentuse alternate IoHash comparision function (#177) (diff)
downloadzen-587e0f1398ac1f4866ab46d232955afa33d956a0.tar.xz
zen-587e0f1398ac1f4866ab46d232955afa33d956a0.zip
Separate UTF-8 flags by platform (#178)
Fixes the following warnings ``` 1>cl : Command line warning D9002: ignoring unknown option '-source-charset=utf-8' 1>cl : Command line warning D9002: ignoring unknown option '-execution-charset=utf-8' ```
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake.lua b/xmake.lua
index 4d04506c6..a8256dbd5 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -67,8 +67,11 @@ else
end
-- fmt 11+ requires utf-8 when using unicode
-set_encodings("utf-8")
-set_encodings("source:utf-8", "target:utf-8")
+if is_os("windows") then
+ set_encodings("utf-8")
+else
+ set_encodings("source:utf-8", "target:utf-8")
+end
if is_os("windows") then
add_defines(