Closed samuelsainz closed 3 years ago
Thanks for the contribution!
@ksuther my pleasure! Do you think you could release this fix soon? I would appreciate it
Going to wait a bit to see if #477 can go in but then I'll make a release. Thanks for the nudge!
Description
POSIX systems have an
ARG_MAX
for the maximum total length of the command line, so the command may fail with an error message of "Argument list too long". This is happening in some cases when running Slather, as reported in #431.This error is happening when executing
xcrun llvm-cov
for a large list of source files.Solution
The solution is to use
xargs
. Using this command we can break the list of source_files into sublists small enough to be acceptable.xargs
uses spaces as delimiters for params. To avoid issues with paths containing spacesxargs
is used with-0
argument: