From 4d11d90ba502bcd82a72c2ea66b1115897d81c52 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 4 Sep 2025 22:57:52 +0800 Subject: improve bin2c --- xmake/modules/utils/run_script.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'xmake/modules/utils/run_script.lua') diff --git a/xmake/modules/utils/run_script.lua b/xmake/modules/utils/run_script.lua index 709580f1b..0394ccb6e 100644 --- a/xmake/modules/utils/run_script.lua +++ b/xmake/modules/utils/run_script.lua @@ -170,11 +170,19 @@ function main(script, opt) local curdir = opt.curdir or os.workingdir() local oldir = os.cd(curdir) if opt.thread then + local argv + for _, arg in ipairs(opt.arguments) do + argv = argv or {} + if path.instance_of(arg) then + arg = tostring(arg) + end + table.insert(argv, arg) + end local thread_opt = { curdir = curdir, command = opt.command, deserialize = opt.deserialize, - arguments = opt.arguments, + arguments = argv, verbose = opt.verbose, diagnosis = opt.diagnosis } -- cgit v1.3.1