summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/vstudio/impl/vs200x_vcproj.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-13 14:06:43 +0800
committerruki <[email protected]>2017-07-13 14:06:43 +0800
commit73ed3035706e0e7e4891bcee9e351cc3c819b34a (patch)
tree7db5b6603c59f6b33928debd0e602397069c14d1 /xmake/plugins/project/vstudio/impl/vs200x_vcproj.lua
parentb7ae88c507b9afe89cd677ee81894e44a961a4b4 (diff)
fix vs201x project and cl script
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs200x_vcproj.lua')
-rw-r--r--xmake/plugins/project/vstudio/impl/vs200x_vcproj.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs200x_vcproj.lua b/xmake/plugins/project/vstudio/impl/vs200x_vcproj.lua
index 3fe67bf45..102ab8399 100644
--- a/xmake/plugins/project/vstudio/impl/vs200x_vcproj.lua
+++ b/xmake/plugins/project/vstudio/impl/vs200x_vcproj.lua
@@ -32,7 +32,7 @@ import("vsfile")
function _make_compflags(sourcefile, target, vcprojdir)
-- make the compiling flags
- local _, compflags = compiler.compflags(sourcefile, {target = target})
+ local compflags = compiler.compflags(sourcefile, {target = target})
-- replace -Idir or /Idir, -Fdsymbol.pdb or /Fdsymbol.pdb
local flags = {}
@@ -60,8 +60,8 @@ function _make_compflags(sourcefile, target, vcprojdir)
table.insert(flags, flag)
end
- -- concat flags
- flags = table.concat(flags, " "):trim()
+ -- make flags string
+ flags = os.args(flags)
-- replace " => &quot;
flags = flags:gsub("\"", "&quot;")
@@ -74,7 +74,7 @@ end
function _make_linkflags(target, vcprojdir)
-- make the linking flags
- local _, linkflags = linker.linkflags(target:get("kind"), target:sourcekinds(), {target = target})
+ local linkflags = linker.linkflags(target:get("kind"), target:sourcekinds(), {target = target})
-- replace -libpath:dir or /libpath:dir, -pdb:symbol.pdb or /pdb:symbol.pdb
local flags = {}
@@ -102,8 +102,8 @@ function _make_linkflags(target, vcprojdir)
table.insert(flags, flag)
end
- -- concat flags
- flags = table.concat(flags, " "):trim()
+ -- make flags string
+ flags = os.args(flags)
-- replace " => &quot;
flags = flags:gsub("\"", "&quot;")