diff options
| author | ruki <[email protected]> | 2025-09-04 22:57:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-09-04 22:30:35 +0800 |
| commit | 4d11d90ba502bcd82a72c2ea66b1115897d81c52 (patch) | |
| tree | 7475b62c335f4c4028a0e7f36e5f4073b61151fd /xmake/modules/utils/run_script.lua | |
| parent | 15c0177361f6a6b488ab6937d088f4a0a711a086 (diff) | |
improve bin2c
Diffstat (limited to 'xmake/modules/utils/run_script.lua')
| -rw-r--r-- | xmake/modules/utils/run_script.lua | 10 |
1 files changed, 9 insertions, 1 deletions
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 } |
