summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomain <[email protected]>2022-07-06 15:11:29 +0800
committerDomain <[email protected]>2022-07-06 15:11:29 +0800
commitb82b7581db07c368e0e494fada1ae88efdda89ef (patch)
tree3155dcc5b49d1c99d628cc357ccee62f09d3eaeb
parentf8bd0442d13dfad65a2cc25d78fd0214a8745675 (diff)
runargs can be a table
-rw-r--r--xmake/plugins/project/vsxmake/getinfo.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua
index 895d33f22..93653061b 100644
--- a/xmake/plugins/project/vsxmake/getinfo.lua
+++ b/xmake/plugins/project/vsxmake/getinfo.lua
@@ -226,7 +226,13 @@ function _make_targetinfo(mode, arch, target)
table.insert(runenvstr, k .. "=" .. v)
end
targetinfo.runenvs = table.concat(runenvstr, "\n")
- targetinfo.runargs = target:get("runargs")
+
+ local runargs = target:get("runargs")
+ if type(runargs) == "table" then
+ targetinfo.runargs = table.concat(runargs, " ")
+ else
+ targetinfo.runargs = runargs
+ end
-- use mfc? save the mfc runtime kind
if target:rule("win.sdk.mfc.shared_app") or target:rule("win.sdk.mfc.shared") then