]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: speed up libcurl doc building again
authorViktor Szakats <commit@vsz.me>
Wed, 27 Mar 2024 15:54:08 +0000 (15:54 +0000)
committerViktor Szakats <commit@vsz.me>
Thu, 4 Apr 2024 09:21:17 +0000 (09:21 +0000)
commitbb84f82476df2b54c81693616d385e51c490c9e7
tree5a1832ef765585ad3c945ea410042f422a5b830a
parent19f4263f2650b04d4650800794000ea5b5a8ec50
cmake: speed up libcurl doc building again

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 other
envs to be safe. If there is a way to detect `cmd.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 builds much faster.

Ref: #12762 2620aa930bc73af1e4c70b10e3125b957b96ecfb (initial)
Ref: #13047 f03c85635f35269f1f45b983bf216624f541760a (revert)

Reviewed-by: Daniel Stenberg
Closes #13207
docs/libcurl/CMakeLists.txt