cmake: speed up libcurl doc builds again #13207
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This time limit the number of files per command to avoid exceeding limitations of certain OS/shell envs.
Such known env is Windows with the
cmd.exe
shell, which features an 8K command-line length limit to this day.Allowlisting
UNIX
to have no limit and using a limit of 200 for all other envs to be safe. If there is a way to detectcmd.exe
and/or we know which precise envs are sensitive to this, we can tweak these conditions further.Even with the low limit, this patch reduces external commands by 200x, making full and CI builds much faster.
Ref: #12762 2620aa9 (initial)
Ref: #13047 f03c856 (revert)
Closes #13207