]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Significantly reduce compile time for googletest internal tests
authorarichardson <arichardson@FreeBSD.org>
Wed, 28 Oct 2020 11:54:04 +0000 (11:54 +0000)
committerarichardson <arichardson@FreeBSD.org>
Wed, 28 Oct 2020 11:54:04 +0000 (11:54 +0000)
commiteb5e77ad2f33308cab2da9f800b0d59e17dd72a5
treead581042e0d10eeebb2aab0f5559acd5afb763f3
parentd6b5dc93eaecc8e915d112e67774cff8d6bb4fe0
Significantly reduce compile time for googletest internal tests

Clang's optimizer spends a really long time on these tests at -O2, so we now
use -O0 instead. This reduces the -j32 time for lib/googletest/test from 131s
to 29s. Using -O0 also reduces the disk usage from 144MB (at -O2) / 92MB (at
-O1) to 82MB.

Reviewed By: ngie, dim
Differential Revision: https://reviews.freebsd.org/D26751
lib/googletest/tests/Makefile.inc