summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 81065f9cf..2d55001e3 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -392,7 +392,10 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
if dependinfo then
compflags = table.join(flags, "-showIncludes")
end
- return os.iorunv(_compargv1(self, sourcefile, objectfile, compflags))
+
+ -- compile and enable vs_unicode_output @see https://github.com/xmake-io/xmake/issues/528
+ local program, argv = _compargv1(self, sourcefile, objectfile, compflags)
+ return os.iorunv(program, argv, {vs_unicode_output = true})
end,
catch
{