summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 93653061b..e45947482 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -228,10 +228,8 @@ function _make_targetinfo(mode, arch, target)
targetinfo.runenvs = table.concat(runenvstr, "\n")
local runargs = target:get("runargs")
- if type(runargs) == "table" then
- targetinfo.runargs = table.concat(runargs, " ")
- else
- targetinfo.runargs = runargs
+ if runargs then
+ targetinfo.runargs = os.args(table.wrap(runargs))
end
-- use mfc? save the mfc runtime kind