summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomain <[email protected]>2022-07-06 15:28:00 +0800
committerDomain <[email protected]>2022-07-06 15:28:00 +0800
commita798e0aed639458a4da0faabf47ad076db37eb0f (patch)
tree4a8643021cedf3d78566125885f25fd6f049f89e
parentb82b7581db07c368e0e494fada1ae88efdda89ef (diff)
use os.args
-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