]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Significantly reduce compile time for googletest internal tests
authorAlex Richardson <arichardson@FreeBSD.org>
Wed, 28 Oct 2020 11:54:04 +0000 (11:54 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Wed, 28 Oct 2020 11:54:04 +0000 (11:54 +0000)
commit433f33d285eee7cd6a822b9d833a537dfc808634
treead581042e0d10eeebb2aab0f5559acd5afb763f3
parent71167bd597130dbd6fd0aea749616d9293875489
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