summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/cl.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-08-20 23:52:53 +0800
committerruki <[email protected]>2019-08-20 17:17:24 +0800
commitb4aaf6ec3aa7d2d9d6f21f267a46869d25275d16 (patch)
tree4ffca303046f223ec92a2d7938d13d4ac3622ada /xmake/modules/core/tools/cl.lua
parentda11852ee8510e46ba0436ab125d0d89d6c1f728 (diff)
rewrite vs unicode output
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
-rw-r--r--xmake/modules/core/tools/cl.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 2d55001e3..d09a67e8e 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -22,6 +22,7 @@
import("core.base.option")
import("core.project.project")
import("core.language.language")
+import("private.tools.vstool")
-- init it
function init(self)
@@ -393,9 +394,8 @@ function _compile1(self, sourcefile, objectfile, dependinfo, flags)
compflags = table.join(flags, "-showIncludes")
end
- -- 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})
+ -- use vstool to compile and enable vs_unicode_output @see https://github.com/xmake-io/xmake/issues/528
+ return vstool.iorunv(_compargv1(self, sourcefile, objectfile, compflags))
end,
catch
{