CTestCoverageCollectGCOV: Add TARBALL_COMPRESSION option

For large projects, the default bzip2 compression of gcov data is
prohibitively expensively (could take several hours).  Introduce options
that allow the consumer to choose between file size and compression time.

Add a new optional argument `TARBALL_COMPRESSION` for the macro
`ctest_coverage_collect_gcov`. This option accepts the values `GZIP`,
`BZIP2`, `XZ`, `FROM_EXT`, or an expression that evaluates to `FALSE`.
The default value is `BZIP2` to preserve prior behavior.

Fixes: #20593
This commit is contained in:
Kelly (KT) Thompson
2020-04-22 11:10:31 -06:00
committed by Brad King
parent 81e83510a0
commit 40ca6ef125
3 changed files with 192 additions and 15 deletions
@@ -0,0 +1,7 @@
CTestCoverageCollectGCOV-compress-opts
--------------------------------------
* The :module:`CTestCoverageCollectGCOV` module
:command:`ctest_coverage_collect_gcov` function gained a
``TARBALL_COMPRESSION`` option to control compression of the
tarball of collected results.